- Development Status :: 5 - Production/Stable
- License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
- License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
- License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
- Topic :: Text Processing
- Topic :: Text Processing :: Indexing
- Topic :: Text Processing :: Linguistic
When you know about this project and you want to new install ngram to support your project or you get trouble as ModuleNotFoundError: No module named "ngram" or ImportError: cannot import name "ngram" in your project, let follow this tutorial to install ngram
In Windows (CMD):
py -m pip --version
In Unix/macOS:
python3 -m pip --version
Ensure pip, setuptools, and wheel are up to date:
In Windows (CMD):
py -m pip install --upgrade pip setuptools wheel
In Unix/macOS:
python3 -m pip install --upgrade pip setuptools wheel
Optional - If you want to install
In Windows (CMD):
- Install virtualenv - if you installed it, please ignore
py -m pip install --user virtualenv
- Create a virtual environment
py -m venv test_ngram_env
- Active the virtual environment
test_ngram_env\Scripts\active
In Unix/macOS:
- Install virtualenv - if you installed it, please ignore
pip3 install virtualenv
- Create a virtual environment
python3 -m venv test_ngram_env
- Active the virtual environment
source test_ngram_env/bin/active
To install ngram on Windows(CMD):
py -m pip install ngram
To install ngram on Unix/macOs:
pip install ngram
Example:
pip install ngram==2.0.0b2 pre-release
Please see the version list below table:
Version | Released date | Command |
---|---|---|
ngram 4.0.3 | 2021-09-15T13:47:57 | Windows: Unix/macOs:
|
ngram 4.0.1 yanked | 2021-09-10T21:01:25 | Windows: Unix/macOs:
|
ngram 4.0.0 yanked | 2021-09-10T18:50:12 | Windows: Unix/macOs:
|
ngram 3.3.2 | 2017-06-20T20:44:19 | Windows: Unix/macOs:
|
ngram 3.3.0 | 2012-06-29T14:07:05 | Windows: Unix/macOs:
|
ngram 3.2.1 | 2012-06-28T14:44:33 | Windows: Unix/macOs:
|
ngram 3.2 | 2012-06-25T15:18:08 | Windows: Unix/macOs:
|
ngram 3.1 | 2009-12-07T11:41:18 | Windows: Unix/macOs:
|
ngram 3.0 | 2009-07-03T13:59:31 | Windows: Unix/macOs:
|
Download the distribution file from ngram-4.0.3.tar.gz or the specific ngram version in the below list of distribution
After that, install by command:
On Windows(CMD):
py -m pip install <path_to_ngram_downloaded_file>
On Unix/macOs:
pip install <path_to_ngram_downloaded_file>
List distribution:
- ngram-2.0.0b2.tar.gz
- ngram-3.0-py2.5.egg
- ngram-3.0-py2.6.egg
- ngram-3.0.tar.gz
- ngram-3.1-py2.6.egg
- ngram-3.1-py3.1.egg
- ngram-3.1.tar.gz
- ngram-3.1.win32-py2.6.exe
- ngram-3.2.tar.gz
- ngram-3.2.1.tar.gz
- ngram-3.3.0.tar.gz
- ngram-3.3.2.tar.gz
- ngram-4.0.0-py3-none-any.whl
- ngram-4.0.0.tar.gz
- ngram-4.0.1-py3-none-any.whl (python version >=3.1)
- ngram-4.0.1.tar.gz (python version >=3.1)
- ngram-4.0.3-py3-none-any.whl (python version >=3.0)
- ngram-4.0.3.tar.gz (python version >=3.0)
Project link: