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

Uploaded Source

Built Distribution

ovos_padatious-1.4.2-py2.py3-none-any.whl (41.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: ovos-padatious-1.4.2.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for ovos-padatious-1.4.2.tar.gz
Algorithm Hash digest
SHA256 01a9dd3dd36787885d4814c2903d0151a1d22ca883928845f4c8c335207ef076
MD5 e97e2cfca4de035acb1e03c0690336c7
BLAKE2b-256 551df49584aa5224f61eab67d1435f6684f99444c474f6e8d3b494749867c84e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ovos_padatious-1.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 db64481248fb6001f758b189010f12ae3922d91e8fe1fb8828e4e00809fa4fea
MD5 5825e43d3787a603c17ce3672cf64571
BLAKE2b-256 41ad582f329aa2df71abb453495c87ac06fd232ab7376eacfbe357f143a65977

See more details on using hashes here.

Supported by

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