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.3.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c9ff2d4abaf2609fad01b99e5c35f8a6c7fd90c4c8eb228c5e116ac09a7670 |
|
MD5 | 62971c4dcee03d9c4fac5e44cbc56823 |
|
BLAKE2b-256 | ff474e5b3d3e8a2050c5135fee296373be2da95605f465f0767d201977ef11c8 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a675ab7a3b052c1d9993d82c7588ff1c1426a0df2f343e7f8cea09da6455b547 |
|
MD5 | 0daf18d5dcd393a43a0305ab28539143 |
|
BLAKE2b-256 | b2781074dfcd33d80d557f3d92f47729bab054c400ae3d2cc3037c0f407f32da |
Close
Hashes for snips_nlu_parsers-0.3.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f135fe1c3c304fc2a134de86861b1f3cfd1f2e5f5ce79e4ae6a03926ff67f7c6 |
|
MD5 | 79ca57a2755bf3e4638e7cd8c6acc611 |
|
BLAKE2b-256 | 028498165951fd7aa20d911840d221487a8faddf4197f4f4b29aba2c5e86b253 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp37-cp37m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ee76bbffcefdb1a687a4059259b7d57bd13f72577a5b7ec9859d798b710bb4 |
|
MD5 | 31ca042a3c06507f8584f9e1a9e83bf5 |
|
BLAKE2b-256 | fc86bcaf6b3a12db3a7e6126fa970397c0083f98b14268db0f3ada61cbe02324 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a1b3e4d549251825ae0caee7a973a3bfd21d4d9890d4a8ee3a4caec8ad44dde |
|
MD5 | a91e3aed36ddad8f96ebe98c085e4b13 |
|
BLAKE2b-256 | 236cbe45e4fc9b6ff577b47c7b6bb0653f5777c8311019609849eb2cd5ef74ec |
Close
Hashes for snips_nlu_parsers-0.3.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9b42e605a3b457688c97461e1c130cd8f7cd8f061e2e28965513adab1018920 |
|
MD5 | 6402b550d19a227623a43e10ebe0858b |
|
BLAKE2b-256 | 458778e9765d0f018a356849bdf30d8870740312b5e5fbb0a1366df5caf830a5 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d35d85b3ae33d374c53ae898e398cfe23773aa7cc8d27cc902b34eb791e7a361 |
|
MD5 | bf6adb346fe7e07b436609bcc8896403 |
|
BLAKE2b-256 | e0ba5ed0ed2bcb4b85029d1504bdbb7472299089b2af885436cba3efbda59dcb |
Close
Hashes for snips_nlu_parsers-0.3.0-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80d1df4ac46725cb6e7a1a1b0cc7dc7a83ecb0204e16f23eccb2ebcf17913e05 |
|
MD5 | 27daf87bdb8c24442de28406afd4b5a9 |
|
BLAKE2b-256 | bea4b924805cbe8fcb2c5898db6e428370c1f2e74ac710f1d398eff6ac5fad94 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9213ace66e9ae81e07cf234a13b642da72c6927401222239aa8eacd5bd318990 |
|
MD5 | 20328be945eaa3e668072a75f7c1d229 |
|
BLAKE2b-256 | da30414dfb9040914e19b1240e8d6cfcfc9daf931ea1884d62761d8b27099af9 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90bdcdc9e04267c6a7153515ee4ce5ffcb1e4ba6d7305584b20e4e0d0d09c536 |
|
MD5 | e061d0e9273525337c714d8c91dfde78 |
|
BLAKE2b-256 | 357c00e81de067b814394341d097d65ae7ec32f207f9edab892a6ffd13fd86c9 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3367d5da40fae97349a684691ba915cba73098ad718f486e29daac01d2909fdc |
|
MD5 | e42460a4f694f9345c1c075d715d35e6 |
|
BLAKE2b-256 | 7826082db9f0cfc06e676a83f3995bf3db8f8f8227ab709f679e9416d19dd3e0 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5808e1e2b78e720c7cf38a93a37035f6845a02ed0fee26bce9a66e8368516f7e |
|
MD5 | 6561ef31ddeb32eedfb5d8a1a8f24d1a |
|
BLAKE2b-256 | 769f6b83e015bdf2a5d266553819ed6364fb3328141c1d76eb592bfb307265a0 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df707894ae153ba9aa1876e3f7960a2fcca5231c60bfa200af7c8d8b53b210c |
|
MD5 | 0cb4a8c00c673c1b480b28a7f5c72b10 |
|
BLAKE2b-256 | 10b900f34fce6cde8429002f0570d032ef5a823353f2d30232172da9fa73b071 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27b799748929029ca290f20b522d5b67d3b98185f6d460f9a3dd064a2f42033b |
|
MD5 | 97bfa1f79d28470e7ac016111e458580 |
|
BLAKE2b-256 | 3b0bd755c86521d70aab0bd6a598768c8b9a5d4e03955007ac45a9797160f6a6 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 962fe0792728149753fc40b06e9cef81a935c5b4530fe98ef5162eec5e3dc2d1 |
|
MD5 | aee0e7540c8ac83947695e7d7ac5f088 |
|
BLAKE2b-256 | 7fbebdc4cfd17f9f690aa960143c23ca362195a0e50521353fd89f8d21b57dd8 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904024e8f6f321bb755666518f49d66c08600c808b0effa6a43623525a559eb1 |
|
MD5 | 5c19ddf56aae92a06f1bd5eae874cbce |
|
BLAKE2b-256 | 5981c52bbab4393ba3343eabf6894ca91d2fceb6a5bea7ae2b5330b652028797 |
Close
Hashes for snips_nlu_parsers-0.3.0-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f55aa37f176e4ce15419530d54f65adbfdd3acbf0fe9517d452ad799e5731b6 |
|
MD5 | 2e9e91a3062552da7420af95322d6dd1 |
|
BLAKE2b-256 | f8d577c6d7f1d085f87e86fed344c0d53e4643afa07cd487b52b56f02b4afc95 |