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


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-1.6.2a1.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_padatious-1.6.2a1-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos_padatious-1.6.2a1.tar.gz.

File metadata

  • Download URL: ovos_padatious-1.6.2a1.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ovos_padatious-1.6.2a1.tar.gz
Algorithm Hash digest
SHA256 8a65bf3a8260caaf8b3e0133ff291117399049727627cd2595996f7bb0fb927a
MD5 7606931aad840e3af160a1ba62c24f02
BLAKE2b-256 b65e359ff049e9be8ce3efc77d8cd8f4ae2f961fc563f8cd1de1629d4c510b7c

See more details on using hashes here.

File details

Details for the file ovos_padatious-1.6.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_padatious-1.6.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e32b2ecfa2cef93a5f306e900d92283905449129e83e97bfd52c595204ffe28
MD5 01f6db28f52b69445c65d54403314f76
BLAKE2b-256 17aff59491c8dceb3595a2f251e6ef69f955e799a2abfed598546c0f2f3224b6

See more details on using hashes here.

Supported by

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