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.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed758bea9d3b6b96d2aee985d56c40dcbdc45ecb2c7983fe277be7ccf262b1d7 |
|
MD5 | 9207365bfff628c87c5225414903526e |
|
BLAKE2b-256 | 1ed6a573e5a55bc1e814e6b5c0ca1fb7b487ea7f0a799790f8b1dcdea2464324 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b460924c40994db5d5c6d79ac4dd0f5a9e46da3180a464a1f5fbec4b6e954de |
|
MD5 | f4beadf147ec97eef6e1f7997836bcd2 |
|
BLAKE2b-256 | 90db93b9967f1ea5446d5cfba28e0156daa9d5e119c4fb55094e398c8ec4a596 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b38b52d2c033f3ba87d166cc1ae0c91b989eec1ee6533b4c28b26312586583 |
|
MD5 | d91306dcdf46ca4e686345113e7523ac |
|
BLAKE2b-256 | c5a3800656e9b87c4b39da0757d5ab8a8e63d498e2b58a6bf451486a160fffa3 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp37-cp37m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94da8bfe1472f3076b673b0eb3ebfe70c62d097c3665e84f0aa71906da1c0740 |
|
MD5 | 54776e1d3eb936a62cfc639ab9928564 |
|
BLAKE2b-256 | 3a6f1c40b97de554f9a3931bb9d96aa5f34a5e762f51effd9511733470374e51 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ca8737d45b7c90f2b50a80919cb0e1190bfa1ae15e3618903c4e8775915effa |
|
MD5 | d44a4af0bcdfdb85dc55e2068cf109d2 |
|
BLAKE2b-256 | 813affab85c2649c36f2889811a6c28ba726adc5df85c07111491574381d1f6e |
Close
Hashes for snips_nlu_parsers-0.2.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cda41b8d0809d2b0a0910e5b6054be076921e65e201a2f2c3638999b629ae5ff |
|
MD5 | 75fadb14d8200b62d3104ad18d83a7e2 |
|
BLAKE2b-256 | 18823002720e2231ff69e2ed308906817dfebcd3e6da3154bb0a5a5e3adfc750 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aecc83e33ddc1090d305b460b904e86d8e8b38185e4194a327a975bce9ebecfe |
|
MD5 | 4416a8136da0575440525e17b65d4841 |
|
BLAKE2b-256 | 181a0b699f479f113f9574be82d7f551f39308a486f99b64b29d6a0c0e815899 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c73edca45e7af40b3bf10d8583b6459811ad2f0c0e7d4b6601316e53bc30ff9e |
|
MD5 | aa80a2ec14a17655e6b9682be6245a29 |
|
BLAKE2b-256 | f4f2c97cbdcc497323476ea6c6b475c68861b5284088965d1e6c49c8dc709bc4 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51f02ef2406063687df26edd2d899a9c94ce3a3086926e36de58363634732895 |
|
MD5 | e336b9160c2d438f2000530f369d132d |
|
BLAKE2b-256 | 5e7babe2ab52297e14ea0cc323a68683c0d32bb83c5de2771a5d827f465b0a13 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896084b29b6f038af28055b9324ca154733bd6bb9acff763f1729e6f02e67cd7 |
|
MD5 | 39c30ad629a28ccb783391081e689714 |
|
BLAKE2b-256 | 73991d5f2a97cf8b74850499609c906ae86545f653384235c60daf864c466d60 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b30c28ce327435e443de8d614f1aca871a763e7fdd963f0251823283b1ad81 |
|
MD5 | 0c0c48457c3cd51356a406947cf4507a |
|
BLAKE2b-256 | f63a65627cdb43f5a6be4de6dcbd7d51da5d2646fa87a5410a1eb0708dd0c2c8 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 892c97ae86acfd74bd716992168ecd023c2a2f1544b0febba0c29346978cf581 |
|
MD5 | acd01e349308af981db6491509b4e9d1 |
|
BLAKE2b-256 | 7036b7c5af39d8651b4589527456d8aebffac0b07434aac35ba4654982d41ece |
Close
Hashes for snips_nlu_parsers-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39eb04b3fdd908c181a6c2003f299eed8e92414507a6c003df4eef931d60fed |
|
MD5 | 642495769715a5883d7557bd65f079d5 |
|
BLAKE2b-256 | 8360d5f6d7b778c5e258360cda6477d2d9443b0222296b7452684b8902f3ed71 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 551f5de37cff4eefacd39cb7d9b7de66c479e0474b22e4e2c3725c6a5bb8f16b |
|
MD5 | df2fa75af72d599d8607346faab3cdcc |
|
BLAKE2b-256 | ee8be9db0a9201a491272a842fc3ac44746a19d73550c1eadb3269f6d30d485e |
Close
Hashes for snips_nlu_parsers-0.2.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d334d64a4cecf2daba02086799571b52bf40430b535e3de4630d6b277c708309 |
|
MD5 | 0acdb0734ad85e828c714d4389487212 |
|
BLAKE2b-256 | 1ca3a2ea03bcedacda49d2e3e0de3c70a5e45c558248ebc08896605a43fbfed3 |
Close
Hashes for snips_nlu_parsers-0.2.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6ecd0f6d2985dcfa4c7910ecf185fc1156d2ab20fb26aed97cf588a6fbbbf51 |
|
MD5 | c1630c0b16dc567a79f5f86243f51744 |
|
BLAKE2b-256 | 13a4c757c95858692c6e9cb559fde8a937fc150253168ef371158f3da104d67c |
Close
Hashes for snips_nlu_parsers-0.2.0-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0c2e9277cd1ecab67f1f652d4e34b13fedc5958b7e4bee59a7709afc8cffe01 |
|
MD5 | 9bfa7a4a7f5ca2b74e7a5b39e98179bb |
|
BLAKE2b-256 | 3a591819609bed40b18b7150661f53fadd8cb572916c46bd90ae38edb9ed232a |