Python wrapper of the snips-nlu-parsers Rust crate
Project description
Installation
Linux x86 / MacOS (>= 10.11) / Windows
Wheels and source distribution are available for Python2.7 as well as Python >= 3.4
pip install snips-nlu-parsers
Other platforms
This package can be installed via pip from a source distribution. As it contains some rust code, rust must be installed on your machine.
To install Rust, run the following in your terminal, then follow the onscreen instructions:
curl https://sh.rustup.rs -sSf | sh
You will also need the python lib setuptools_rust:
pip install setuptools_rust
Finally, you can install snips-nlu-parsers using pip:
pip install snips-nlu-parsers
Usage
>>> from snips_nlu_parsers import BuiltinEntityParser
>>> import json
>>> parser = BuiltinEntityParser.build(language="en")
>>> parsing = parser.parse("what will be the weather in three days ?")
>>> print(json.dumps(parsing, indent=2))
[
{
"value": "in three days",
"range": {
"start": 25,
"end": 38
},
"entity": {
"kind": "InstantTime",
"value": "2019-02-24 00:00:00 +01:00",
"grain": "Day",
"precision": "Exact"
},
"entity_kind": "snips/datetime"
}
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for snips_nlu_parsers-0.4.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcf9ac3bab3758b77d0e56fcbbcfc66fd4108f2dcea4e9af15abd97a3477da1a |
|
MD5 | 0594cd8e9a25915afc6ff43b71d7855f |
|
BLAKE2b-256 | fb285d9a9074f674ba2fd988591c712a07f8fa713beeaa8ad16bec528dba33fc |
Close
Hashes for snips_nlu_parsers-0.4.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7670f49cfb17c826e7fe0a2c1df927be7d22cada669b25baf31e740c17223735 |
|
MD5 | 6048087e4f075e09e5dd180b8b6ac446 |
|
BLAKE2b-256 | 80494776b1937bc8260344a94677852aa9b9c6c024fcd1d84f224f7df4121188 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2384823dcebf6e90018ca0001a46ee9f45823cef25f7c31539d5283e14dae014 |
|
MD5 | 46aa6577a7729068f81c1cfc0d08c840 |
|
BLAKE2b-256 | 83fe9464a61855c56983277b8c34c9072e070bb0615b0b71e1cd6bed756a0845 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a175d71d88f507de85b1da9bad605d7ed48c0b3b8a11a848523bf92290facd9 |
|
MD5 | 41f3c205cd3eea8f700a596f827e92ea |
|
BLAKE2b-256 | f0901e3f351c58252356e3313a0276ea1fd5d95f6a810d0e2c8aa5b2614c4c83 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp37-cp37m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29e6e4239fa2c934a45808ef1a7968326e99cf59fd6dcc198ef8be1c52670df0 |
|
MD5 | 8c88284a0557ed4fba2d0bac16e810d7 |
|
BLAKE2b-256 | d15ef0ac781f2885486a7cd10af45125ef9451a4bd0e2a73ef9a181726c8c875 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1050d86e6055b5af8c852a6015c91802a4508fb5b3431725b2fc36cef1e14f5 |
|
MD5 | 8460848bc398bbd9313523e3afdc15ea |
|
BLAKE2b-256 | f7765a012c88b519b476d68421e38b7c21b9289afadab2592f611f873dc38405 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac3b2d3725a9a5aab17fc7234b2aa071a33c51cd06c62ea36695052fae252fc |
|
MD5 | dea39236b081d0c492778d51f8a125c9 |
|
BLAKE2b-256 | e9eea94df5a4e72022089dddc78843959309cae10398f0ea282f75af9802b547 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96912dfd6f8165e06f6ba8e71619edfc5486a4634479f4edb21b2b5e913c6ba |
|
MD5 | 246a7e00e69e03d0535a79d97d89ecd4 |
|
BLAKE2b-256 | 97eb5b21a0e326f67b0182dee70833bfb14073355c7c9ee9cf2f852e5065dcaa |
Close
Hashes for snips_nlu_parsers-0.4.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f7482dfe8af4a4ba2404a5460022860506cd8922d41586ff187a032d040b27 |
|
MD5 | 375209400d25a637ca4f2def15934980 |
|
BLAKE2b-256 | 6757611daa4ed7947e06a10755067e7e6a0d0cee225e2bf4874a2dbef7fa067d |
Close
Hashes for snips_nlu_parsers-0.4.2-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d5a85e60ee736047d09d4909f38ffe630492929eb96d3d6581daa36191f854 |
|
MD5 | 38b349af2abf97da2c86418fa1769709 |
|
BLAKE2b-256 | c71a17846970ea5ca57a9c12ab6a49256952a0ce5717494c696027380c7fffe4 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1947b6895d1479c280e772da24eb9d630626ded81ae37683d4564bcb408031c9 |
|
MD5 | 44c81a1d71c2e038087464b1bbb53b3f |
|
BLAKE2b-256 | 8eed8839d638bdf97899c2951ed3712f2c2e8c3665af14a657c23987e5a2dfb0 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 591b9f2b52ba80ff996194a9c251e059005055ef292e2dff4ac9d8b104722204 |
|
MD5 | b83b3e543558fcfd8e6a05aea36edbff |
|
BLAKE2b-256 | 0f0a0aa1c96c094708f83c0a6e061efc5ea072d957a0f5f3b554e778da5ac954 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe88a04d6953f207b7b98bf6c2801db94f9dd2c2984bbcee82ca4339c9b21a3 |
|
MD5 | e5c29f965c3f7e9d1584d5c2f9450d69 |
|
BLAKE2b-256 | 01013e56479406c8b2e7225e8a3c4f6472da5f2545c0c9ea1244571ab668ec79 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e4f508469833abdacab8b4771c524902c2e4459d5a72b3b87d85ae2961d9c94 |
|
MD5 | ab82f1f9c7df792ee13ac99ca960954b |
|
BLAKE2b-256 | f4918016e23e4f16c555493c6883d3de90012d49ce506cd96dcfdb4b716df808 |
Close
Hashes for snips_nlu_parsers-0.4.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eaa3d3da2a1faecbce09a46046c1cc570b6823df0f5abbf5108d1d45073de7d |
|
MD5 | 0e0ea97198c33dfd6af112515ba31fbf |
|
BLAKE2b-256 | 22d2f1847bc4d528c74ef6b044f9d36c5ea602a5148373b416de3461bf4bc9ff |
Close
Hashes for snips_nlu_parsers-0.4.2-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d748df0eec3941d1f6fe7cf321742f027f5d9d9b196376c67403f859eebce684 |
|
MD5 | a02504ef3c8b346576bbc6ac297c5187 |
|
BLAKE2b-256 | cacd3a43189409e43b7320d8103cd7d352ef95764eb3865880a5374abb653b60 |