Skip to main content

Intently NLU

PyPI - Version PyPI - Python Version

Intently NLU is a Python library that allows to extract the intention and structured information from sentences written in natural language.

Table of Contents

State

Currently in phase 2: Pre-Alpha The library may work, but is not ready for production.

About

Behind every chatbot and voice assistant lies a common piece of technology: Natural Language Understanding (NLU). Anytime a user interacts with an assistant using natural language, their words need to be translated into a machine-readable description of what they meant.

The NLU engine first detects what the intention of the user is (a.k.a. intent), then extracts the parameters (called slots) of the query. The developer can then use this to determine the appropriate action or response.

Let’s take an example to illustrate this, and consider the following sentence:

"What will be the weather in berlin at 9pm?"

Properly trained, the Intently NLU engine will be able to extract structured data such as:

{
  "intent": "weather/intents/searchWeatherForecast",
  "probability": 0.95,
  "raw_utterance": "What will be the weather in berlin at 9pm?",
  "resolved_slots": {
    "locality": "berlin",
    "forecast_start_datetime": "9pm"
  }
}

In this case, the identified intent is weather/intents/searchWeatherForecast and two slots were extracted, a locality and a time.

This library is highly inspired by and forked from Snips NLU, although large parts of the library have been completely rewritten or restructured. Therefore, not all functionality of Snips NLU is available in the same way, some are even missing completely.

The motivation of this project is to create a robust, fast and easy-to-use nlu library similar to Snips NLU with support for newer Python versions or tools, since Snips NLU has not been updated for a long time.

Getting Started

See the Quick Start Guide for more information on how to get started with Intently NLU.

Sample datasets

Here is a list of some datasets that can be used to train am Intently NLU engine:

  • Smarthome dataset: "Set the temperature to 18 degrees in the bedroom", "Turn off the lights in the living room"

Documentation

The documentation can be found here.

Contributing

You can contribute to this project by submitting issues, creating pull requests or improving the documentation.

License

The whole library is built using many concepts from Snips NLU, which is licensed under Apache License, Version 2.0. The library itself is licensed under Apache License, Version 2.0 too.

intently-nlu is provided as Open Source software. See LICENSE and NOTICE for more information.

Release files for intently-nlu 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for intently-nlu 0.0.3
File Size Uploaded
intently_nlu-0.0.3.tar.gz 42.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for intently-nlu 0.0.3
File Interpreter ABI Platform
intently_nlu-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size:86.4 kB

Release files / intently_nlu-0.0.3.tar.gz

Download URL intently_nlu-0.0.3.tar.gz
Size 42.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e91470de4e6e03ed4de804e16689acbf587c46705c12d108fc7793352a2f7d9b
BLAKE2b-256 checksum
How to use checksums
32cf681240554c95988b25a739def32a0b14442232421357db1d8a46702a19e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / intently_nlu-0.0.3-py3-none-any.whl

Download URL intently_nlu-0.0.3-py3-none-any.whl
Size 44.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f635ef8a7a9af22b0f92ff501eaa7d77a84fb39f433f5ee13dd3e5f20f5380a
BLAKE2b-256 checksum
How to use checksums
79da0fa1e1ff64dcf96fad32ada3fef960603453040b2588fa0c0645d01e2e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page