Installation¶
Python Version¶
We recommend using the latest version of Python 3. Snips NLU supports Python 3.4 and newer as well as Python 2.7.
Install Snips NLU¶
It is recommended to use a virtual environment and activate it before installing Snips NLU in order to manage your project dependencies properly.
Snips NLU can be installed via pip with the following command:
pip install snips-nlu
We currently have pre-built binaries (wheels) for snips-nlu
and its
dependencies for MacOS and Linux x86_64. If you use a different
architecture/os you will need to build these dependencies from sources
which means you will need to install
setuptools_rust and
Rust before running the
pip install snips-nlu
command.
Language resources¶
Snips NLU relies on language resources which must be downloaded beforehand. To fetch the resources for a specific language, run the following command:
python -m snips_nlu download <language>
Or simply:
snips-nlu download <language>
The list of supported languages is described here.