Snips NLU (Natural Language Understanding) is a Python library that allows to parse sentences written in natural language and extracts structured information.
Installing
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.
A simple example
Let’s take an example to illustrate the main purpose of this lib, and consider the following sentence:
"What will be the weather in paris at 9pm?"
Properly trained, the Snips NLU engine will be able to extract structured data such as:
{
"intent": {
"intentName": "searchWeatherForecast",
"probability": 0.95
},
"slots": [
{
"value": "paris",
"entity": "locality",
"slotName": "forecast_locality"
},
{
"value": {
"kind": "InstantTime",
"value": "2018-02-08 20:00:00 +00:00"
},
"entity": "snips/datetime",
"slotName": "forecast_start_datetime"
}
]
}
Documentation
To find out how to use Snips NLU please refer to our documentation, it will provide you with a step-by-step guide on how to use and setup our library.
Links
Snips NLU Rust: Rust inference pipeline implementation and bindings (C, Swift, Kotlin, Python)
Rustling: Snips NLU builtin entities parser
Contributing
Please see the Contribution Guidelines.
Copyright
This library is provided by Snips as Open Source software. See LICENSE for more information.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snips_nlu-0.13.2.tar.gz.
File metadata
- Download URL: snips_nlu-0.13.2.tar.gz
- Upload date:
- Size: 8.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fae803b020a98b0a10cf96e39bc6a258530361c00805e1c2bd4d8b4f2b634e7
|
|
| MD5 |
db322ca65dbf2bb836ef00b68b19acaa
|
|
| BLAKE2b-256 |
20584b9af4fcbc3054c2c6f0c38624d77e316adb90060e0e702983d619f4f98f
|
File details
Details for the file snips_nlu-0.13.2-py2.py3-none-any.whl.
File metadata
- Download URL: snips_nlu-0.13.2-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
693d45f25bbc6e6ff6761da3b10373fcbce69191aeedb521ba37ae73059cd988
|
|
| MD5 |
72624708e697797186ebc264b9d6ea21
|
|
| BLAKE2b-256 |
45821815173f594ff775f5c8c7ab0f04b0cb5842e3a83b696faded0d5594893c
|