Skip to main content

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?

Release files for ovos-padatious 1.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-padatious 1.4.3
File Size Uploaded
ovos_padatious-1.4.3.tar.gz 38.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-padatious 1.4.3
File Interpreter ABI Platform
ovos_padatious-1.4.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 80.1 kB

Release files / ovos_padatious-1.4.3.tar.gz

Download URL ovos_padatious-1.4.3.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
740d1bacb7535e2fbd93f55c4fce42fc898db645ec037f558e25d04b68b0996b
BLAKE2b-256 checksum
How to use checksums
3be2e5dadc5a7b5b2658db3b3a8fdeeea4695c732e30808aec9d840124ef53af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / ovos_padatious-1.4.3-py2.py3-none-any.whl

Download URL ovos_padatious-1.4.3-py2.py3-none-any.whl
Size 41.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4355ccf01e37509b10579c855434de5c5b5cb2069867ec429f9c53bfa4055e6c
BLAKE2b-256 checksum
How to use checksums
e38b87842049010a48a700ef7eb3d87c94c0ee29b0d380e8a56165bed5b7a64e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

1.4.3 This release

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.3.6

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page