Skip to content
A neural network intent parser
Branch: dev
Clone or download
krisgesling and penrods Update README for repo restructure
- Add standard badges - no Travis build available
- Extend one-liner description
- Minor re-order and more consistent headings
- Add link to primary docs
Latest commit 95c5421 May 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Fix code style Sep 5, 2017
padatious Increment version to 0.4.7 Mar 30, 2019
tests Add train_subprocess for more stable training Mar 13, 2019
.gitignore Add venv to .gitignore Aug 13, 2018
.pep8speaks.yml Add pep8speaks config file Sep 5, 2017
LICENSE Initial commit Aug 1, 2017
MANIFEST.in Add MANIFEST.in Oct 5, 2017
README.md Update README for repo restructure May 16, 2019
demo.py Improve demo.py Jan 22, 2018
format.ebnf Nested brackets (#5) Mar 28, 2018
requirements.txt Add rule matching layer and support training timeout Jun 14, 2018
setup.cfg
setup.py Increment version to 0.4.7 Mar 30, 2019

README.md

License CLA Team Status

PRs Welcome Join chat

Padatious

An efficient and agile neural network intent parser. Padatious is a core component of Mycroft AI.

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

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 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')

Run with:

python3 program.py

Learn More

Further documentation can be found at https://mycroft.ai/documentation/padatious/

You can’t perform that action at this time.