A neural network intent parser
Project description
Padatious
An efficient and agile neural network intent parser.
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
Getting Started
Installing
Padatious requires the following native packages to be installed:
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.
Example
Here's a simple example of how to use Padatious:
program.py
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')
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
ovos-padatious-0.1.0a2.tar.gz
(29.2 kB
view details)
Built Distribution
File details
Details for the file ovos-padatious-0.1.0a2.tar.gz
.
File metadata
- Download URL: ovos-padatious-0.1.0a2.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6159739aa2fe36cdf3e1bfe7df9cc9ac0b7edfdccdecd86fa578daf4bc0625d |
|
MD5 | 8fe09d1487b55fb240569eb3a03b592d |
|
BLAKE2b-256 | d5a61513c7aed35842e3c4983a588b82a5cbe627d921724fc376287becb3b1fe |
File details
Details for the file ovos_padatious-0.1.0a2-py2.py3-none-any.whl
.
File metadata
- Download URL: ovos_padatious-0.1.0a2-py2.py3-none-any.whl
- Upload date:
- Size: 34.9 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 | 50aed986a592fbc57175d86f8391f820c2e593d5a5bfd2099050448762dc6ff8 |
|
MD5 | 8ce659c6c67b68f5683eb02186cc1cc9 |
|
BLAKE2b-256 | 2476ad196915255f8d53b39fd13dc5467856e0378cfb2106136a9e863b6049c8 |