Skip to main content

A neural network intent parser

Project description

License

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


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.3.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

ovos_padatious-0.1.3-py2.py3-none-any.whl (35.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ovos-padatious-0.1.3.tar.gz.

File metadata

  • Download URL: ovos-padatious-0.1.3.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ovos-padatious-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d4d7d817315e9db8c5a499c9f6d18bafb7455f4e207553408ea1447b347d2228
MD5 da5129d98d72a6d18572b8bd24c95cde
BLAKE2b-256 9fb6c4976eb81a41d83a8c2f0d1694198c9417900d6709509e43142ce5b032fd

See more details on using hashes here.

File details

Details for the file ovos_padatious-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_padatious-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 97338ccc10ce3d7b20ee6bd664edf3b047b478930f3ac0a0b97d56d0d9f72334
MD5 67fe4f02817c58d7af2ee0213fee11c6
BLAKE2b-256 f91626eaca8f6480d0acbeeaea710ba21eae9def8f9e23924398b628b1cd990b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page