Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snips-nlu-parsers

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snips-nlu-parsers

Python wrapper of the snips-nlu-parsers Rust crate

  • 0.4.3
  • PyPI
  • Socket score

Maintainers
2

Snips NLU Parsers

Installation


Linux x86 / MacOS (>= 10.11) / Windows

Wheels and source distribution are available for Python >= 3.5

.. code-block:: bash

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:

.. code-block:: bash

curl https://sh.rustup.rs -sSf | sh

You will also need the python lib setuptools_rust:

.. code-block:: bash

pip install setuptools_rust

Finally, you can install snips-nlu-parsers using pip:

.. code-block:: bash

pip install snips-nlu-parsers

Usage

.. code-block:: python

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" } ]

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc