A neural network intent parser
Project description
Padatious
An efficient and agile neural network intent parser powered by fann.
This repository contains a OVOS pipeline plugin and bundles a fork of the original padatious from the defunct MycroftAI
Features
- Intents are easy to create
- Requires a relatively small amount of data
- Intents run independent of each other
- Easily extract entities (ie. Find the nearest gas station ->
place: gas station
) - Fast training with a modular approach to neural networks
Installing
Padatious requires the following native packages to be installed:
- [
FANN
][fann] (with dev headers) - Python development headers
pip3
swig
Ubuntu:
sudo apt-get install libfann-dev python3-dev python3-pip swig libfann-dev python3-fann2
Next, install Padatious via pip3
:
pip3 install padatious
Padatious also works in Python 2 if you are unable to upgrade.
Direct Usage
Here's a simple example of how to use Padatious:
from ovos_padatious import IntentContainer
container = IntentContainer('intent_cache')
container.add_intent('hello', ['Hi there!', 'Hello.'])
container.add_intent('goodbye', ['See you!', 'Goodbye!'])
container.add_intent('search', ['Search for {query} (using|on) {engine}.'])
container.train()
print(container.calc_intent('Hello there!'))
print(container.calc_intent('Search for cats on CatTube.'))
container.remove_intent('goodbye')
License
NOTE: This plugin is an exception to OVOS universal donor policy
It is licensed under the Apache 2 license, however it depends on fann2 which is licensed under the LGPL. Why is this an issue?
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 Distribution
File details
Details for the file ovos-padatious-1.0.3a1.tar.gz
.
File metadata
- Download URL: ovos-padatious-1.0.3a1.tar.gz
- Upload date:
- Size: 32.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af3b15d19cfa16ece1cb325ff85f3ffbdb8a92a915c3cc1008c404937d0c6ac9 |
|
MD5 | b230663310264633b0ca331bc3e643ae |
|
BLAKE2b-256 | 8a57122d1be7c28644a82e39026bd3800401b696912b97127b5253890b1cfad5 |
File details
Details for the file ovos_padatious-1.0.3a1-py2.py3-none-any.whl
.
File metadata
- Download URL: ovos_padatious-1.0.3a1-py2.py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f55f147b4d57b3bc70b796fbee5cfc3cccc7252d374c11281d07dd78303d1473 |
|
MD5 | 0fa8841a15b16888b659a2d5b2e532ce |
|
BLAKE2b-256 | 780b43ab5f807545cc8f61f9568d7050e9a5fa4d855a30aa525a513473c04f84 |