Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A neural network intent parser

License

NotificationsYou must be signed in to change notification settings

MycroftAI/padatious

Repository files navigation

LicenseCLATeamStatus

PRs WelcomeJoin chat

Padatious

An efficient and agile neural network intent parser. Padatious is a core component ofMycroft 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 nearestgas 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 viapip3:

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

frompadatiousimportIntentContainercontainer=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 athttps://mycroft.ai/documentation/padatious/


[8]ページ先頭

©2009-2025 Movatter.jp