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.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65a22d5f5d43a0056e59b0312bd8f9e6b22fd2562cb29c35c166eef0a6356729 |
|
MD5 | 103c6724ef8df99d37de7896e396277a |
|
BLAKE2b-256 | f461e5120ba8bb5c52d6db7af7ba1181e9c919361c8cdd7979fbce9ecce2cb70 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16b5acae2de6f0b9aec00d912194f01e3494c31fa6b7290fba6dd24ebc4dfaf |
|
MD5 | fc06e8d898eda8f1f23949aa7072f6e5 |
|
BLAKE2b-256 | 5891276e0c8db36e41348fa87dd44d4fb6f1858bfd97aab90e0c10566e3d5375 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8d2e268f4e005a39913df3e478803e7bd29d44b1a6e8e7f586462e62aecc472 |
|
MD5 | 63bac8533443942a40af34d22c4db0b8 |
|
BLAKE2b-256 | a52c58c1765382760612ff3bb7c456d0ac0f202a3f473aad7d504fd7b4e25e9e |
Close
Hashes for snips_nlu_parsers-0.2.3-cp37-cp37m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1824bee1b7ac1094d0126b4eb4ba597572247b762d4f56e940c1dd5c4ca9b190 |
|
MD5 | c84452de041221b94498309cd1c454de |
|
BLAKE2b-256 | 0364431cfd04925ec65d07220e01d2f66b841c4990cb03c93d68eff2b7af2de6 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ade1ead66797cf55e7726923fa9db5cf5d9cd6ccac21a72cb7aac7cd688dec |
|
MD5 | dd34a809943906381dd43192efcdb208 |
|
BLAKE2b-256 | 58c297d0143cf9e35df734abc0fadf87a2b3ce81c1a963ddb8b923a8855ed90e |
Close
Hashes for snips_nlu_parsers-0.2.3-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdfe301101bae2c09b9148de7a69ff04624c58fe8bd4def7ab8402288da51d0f |
|
MD5 | 3eb41c75e598805d0493bf38265f7d23 |
|
BLAKE2b-256 | f1507aa1b5e6227b2c3bb89b7e66a25b6e22a2952522c14079fddf306ec0d21a |
Close
Hashes for snips_nlu_parsers-0.2.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11a9b7096d702de05b3d2a520bc7968cf9f881798eada4aa3cb56188793f0ad7 |
|
MD5 | f603e83783a2b9ef501ac9913dc6fc14 |
|
BLAKE2b-256 | eb6ae02e915ecca3c6e2f29876e1525bc79042da81d8ede803813055540c160c |
Close
Hashes for snips_nlu_parsers-0.2.3-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41ed1e1ed4298204f5db04759afc27bfcf1c8b66001a9d96a6815fe36be5ffa2 |
|
MD5 | 466632e603e095118ce889c5eb35ef9a |
|
BLAKE2b-256 | 4bc55d6c4ab88dbbd92a5fc9b66f02ca7678f4bda39e3b1021fd5f6cd4b21208 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21e2d01ac49155cdc33195c0eaedd6b07cab92c70ececcaf33663861d8026ad8 |
|
MD5 | d1399e969f2f2df6a841bb8ac5a67fa7 |
|
BLAKE2b-256 | e5f4a691a859d6806ed4af141e3084f8273edb9a07faedaa45260fd2b1274514 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba08e7d503b22d9c156cb316dba1ef23b9974071a7f57f5bbbdc84e69dd23b07 |
|
MD5 | 71463a503bafef2c86b0dd99763ae7bf |
|
BLAKE2b-256 | 0e53d398f6f49e3e9bf347c5fe856cede759aa88cbf8532ce7f593c1b50baab3 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f734ef5fa32fa2bd1a0a19c23e1049794b054b19200b38aa77a7c3c6a2a6c9e |
|
MD5 | 07013921ffd5ec0ed24142dc4f8676e7 |
|
BLAKE2b-256 | cf5c764e13a0d75ee05db66dda740d3faeb6e9d7b92919fef9bdcb353a6cc05a |
Close
Hashes for snips_nlu_parsers-0.2.3-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26f7c7e6cd01c5f2d6bd2b34b5af662878dbc98f4008f6a92ad10b71992d1f23 |
|
MD5 | b2d96c8646dc4387991f9d8e933ff79a |
|
BLAKE2b-256 | 9f3fb316c3fce6ee88edb39db61c316bef401347633097ce0936c52d47a507c7 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3f23c45902fe19dc52c1e6b49134d3d59464d45d695864e7e6e5063bd045f74 |
|
MD5 | 2c73129108607383a3f551ed43fbd70f |
|
BLAKE2b-256 | 06429bb0edef0515e82066eb5fee384f3f19ab15bd22aaf6ca7500a2fc6231a2 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc8cc226c362be3a679625879e13279ed506b7de8f11b8950cbd545cbdadae9 |
|
MD5 | daf220b5c04a8dd2628808f7790556ba |
|
BLAKE2b-256 | 70a9bf22de305ea584a6f3f28aa4fc7ddabd416449568574cc4e40926adcbd94 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a04b03091653921229fc19dd921b83940729853a095bceceea31e235471df50 |
|
MD5 | 21b8cc9bebae56ab15a864b4f2fec18b |
|
BLAKE2b-256 | cfe86dff7c9eba422b66fe4118275794ae51c6b6d346a590affc30f491c6809d |
Close
Hashes for snips_nlu_parsers-0.2.3-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ea5afa211c429d4a4b3a93c667232ec9d171b1f387471344674d2ab4ad052d |
|
MD5 | fc241b875375c8dc80a81be5ffcb6c91 |
|
BLAKE2b-256 | 4ff70300ba6a25234236d3f18bea89da4238a29434502b53d8ac9d9347de5b74 |
Close
Hashes for snips_nlu_parsers-0.2.3-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e8367f63a51db617a59e1fa4e8124053ee2c3688f330911e62e5003f6ca01af |
|
MD5 | d9ba288cc3a3266feb86c1eca531f8d4 |
|
BLAKE2b-256 | f9abf019f051c312b43165505444f207669e796bfa65ec29976103fc34d61885 |