Giter Site home page Giter Site logo

padatious's Introduction

License CLA Team Status

PRs Welcome Join chat

Padatious

An efficient and agile neural network intent parser. Padatious is a core component of Mycroft AI.

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

Getting Started

Installing

Padatious requires the following native packages to be installed:

  • 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.

Example

Here's a simple example of how to use Padatious:

program.py

from 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')

Run with:

python3 program.py

Learn More

Further documentation can be found at https://mycroft.ai/documentation/padatious/

padatious's People

Contributors

forslund avatar krisgesling avatar matthewscholefield avatar nielstron avatar penrods avatar repodiac avatar stratus-ss avatar tadashi-hikari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.