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.2.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4850d99d34a45e508448707e3470c456b46d5b00f210c68fd8a1f816dc2b0520 |
|
MD5 | 73ec49c4c483a9751dd35400192c7810 |
|
BLAKE2b-256 | af19a635e49f9211e726c1959012c39c2a2598e744244f2994bd685428e69c37 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e466ba4834a25fc5ad02936e6a454a357b926e87cc52a20e9401c3684d0c197 |
|
MD5 | 43264f13f121c12f13604721017f7df9 |
|
BLAKE2b-256 | c2b5b97e4db2976b15c8c91c2fe4cab9b428a6cf799d6c70f36cc42e31c76b52 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5238098422c8fe87382498ed162254f9cb2888821ec7771babac23eb0536f613 |
|
MD5 | a1a7c2c2b1399af7633ddd3d216772ba |
|
BLAKE2b-256 | e9c5c72a7d7cba6d9baf8d5f93e2fba2e1a42902ed2b464e734a3f248197b921 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp37-cp37m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4baa327577230717277d4bec4ea8c1432455714c9ad999bf4fb090ff48f0a58d |
|
MD5 | 26ef8efee4723b18e14b1222145022eb |
|
BLAKE2b-256 | 866568768d2bb5244be14396c904856dabf52f9631794e76be6b8db1b7f2bf95 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e1a016d6bfce4bce0b578d8738ece7c753e5ec734fe6c8453c3550ac9d7b4eb |
|
MD5 | 2cbbd6f540f5cd1109e5204a884f6b7d |
|
BLAKE2b-256 | 32ba0a337dede48ae3b6ef9247edd7ed18604a2557c8de68f30a92d638c1ab26 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e20ac28c57ab2e96063f026bade8363c20571ea7ca9c8fe283e94132248a9190 |
|
MD5 | 4c5f12ed623a5927635b3ef865261506 |
|
BLAKE2b-256 | 7e910a90f746b66ff92d040092d0e287fa87455e4291d80ba921d921e763b32f |
Close
Hashes for snips_nlu_parsers-0.2.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1dc6027162ed27de7ca6d465f4481e0ddf6df4d625f7c14a1f35a0cfaddedae |
|
MD5 | c8d61f99bd131c70c4ca50dd3f851fa3 |
|
BLAKE2b-256 | 75ff63fbacca0459e9dfded165cb164f3c2d160abc8dc6f672aa33e15996bbac |
Close
Hashes for snips_nlu_parsers-0.2.2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c674ae74d4d5c50515eaa702481fcbad01bf0b2829e078a3379ebc2e6f67de49 |
|
MD5 | b7d7f21bfafa9d32d51fdba8458fbc28 |
|
BLAKE2b-256 | 4f683453eb3e106a6d992830ce5eeac0dfe840b6939478d94c43556fa05d7e3b |
Close
Hashes for snips_nlu_parsers-0.2.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c50d7201e6bc52c55b9d0085606a2ecab25356a04ccd8e74833a02528381a681 |
|
MD5 | 252cbd87d861c1a6c3b1f82f1871dc64 |
|
BLAKE2b-256 | 2ba8aa09453ae2d418831fc2aa9490c05dbad2155849bab51d293f298e815d49 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da94e27448e1375ee5b638142e99d29009589314dbebafe195164b9bec65c7f4 |
|
MD5 | 41f9f65d95859eb9e5599594d6771210 |
|
BLAKE2b-256 | 984fbf4f4db5254c4a26b682eaf0fa350971234da98df6367345bce4aa2fd6f1 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48e3c353520b788a4dc30b7c1a1c2ac06d83336b19bca458bd3018e7097fa6b |
|
MD5 | a63c752a4c0d0ab6390c1406e87491c8 |
|
BLAKE2b-256 | fb90d813470c4e5b8217effcdc39a331de980a244d78015f0ad87f226491d4d1 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5697ac6e068b0d4e062e17b1e0ee8179af8b2b0fa10e8730db166b6cea2acb1 |
|
MD5 | f787b540641006121f746362dc626545 |
|
BLAKE2b-256 | 07499fe86f1bc3a618624f0f6457f1109f3f9cbb9bfe7be3bc56013976913760 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae82086b97e0b2c8ad9f985daf21cc5886c65571b880973f57fcc9ac4910c1e4 |
|
MD5 | fbe4fb6bd86b2852600b112bf8e5b28c |
|
BLAKE2b-256 | 11f1e396d590e54f7e8333be3c9c8e235122d6a0788d51a0da464c1a146a29f0 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08a22df88aac7aa5c93a77c6618f6270c0f2c07c8b7a4ff770bd9989a5ba7f44 |
|
MD5 | ab949560de22b10c3c9a1e8f726711a0 |
|
BLAKE2b-256 | 03f6f2abfaadae08b511866027a1a719c07f6206a6c3681fdb9df7f32cca1322 |
Close
Hashes for snips_nlu_parsers-0.2.2-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dce2c90d408c7cac816db747e47bfe3b90f17fffdb16059f508eac352ee1c00 |
|
MD5 | 87ac0bf3da9d9b7e0ad3d87894f1bce5 |
|
BLAKE2b-256 | 5cb57607b9031112c05c7b3a5d38a120e331d95165efc8cc6b66776a8c8237ba |
Close
Hashes for snips_nlu_parsers-0.2.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31307dac1cbb8678f5ee634ae4af38274e7bd297d6580efb4109cb4f1bd69db |
|
MD5 | 3de048c54affb77360af784325c49b6b |
|
BLAKE2b-256 | 442c33f4aea918dd1eb225f2e49842a92b1fbce464bb188fb06b19e8e15a164c |
Close
Hashes for snips_nlu_parsers-0.2.2-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903e16251904ebb641d934b5fb82f5ad9cb5f44cf02ca6975eb5e03541cf9267 |
|
MD5 | d3e3d22dab245949f856de66d08d8540 |
|
BLAKE2b-256 | 2445f86ddee79fe34e32c1eeeecd34218a6811baf5107bc62d3e00aba5753469 |