Skip to main content

A neural network intent parser

Project description

License

Padatious

An efficient and agile neural network intent parser, implemented in pure numpy with a FANN-compatible model format.

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 is pure Python — no native packages or compilers required.

Install 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

Licensed under the Apache 2 license.

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-2.0.1a1.tar.gz (57.4 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-2.0.1a1-py3-none-any.whl (53.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ovos_padatious-2.0.1a1.tar.gz
Algorithm Hash digest
SHA256 40ebe5fefcf4f7496ce20b50353bc78020740decb3c657270b022eb298f40ef1
MD5 4f58f2fcd41b91ac5bddef10070cd9f6
BLAKE2b-256 b3d43d5bde144c2ad5d952d6f75aa1bf314f1c89c9fa87a32cbecf2b65094650

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ovos_padatious-2.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 980e007f23c96a26dcdf185e6b72c52bececbec3f1ff8d51dc2df2d75425cbb3
MD5 0b2a4d958652c17758414e904cb87cb6
BLAKE2b-256 ce5100a3fd34f658f3b94e6a29a1696f3bd9dd7715bc014e69e7aeb25926e018

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