Adapt
Adapt is an intent parser - meaning that it is a library for converting natural language into machine-readable data structures, such as JSON.
Last updated
Was this helpful?
Adapt is an intent parser - meaning that it is a library for converting natural language into machine-readable data structures, such as JSON.
Last updated
Was this helpful?
The Adapt Intent Parser is open source software. It is lightweight and is designed to run on devices with limited computing resources, such as embedded devices.
Adapt takes in natural language as an input, and outputs a data structure that includes
the Intent: what the User is trying to do
a match probability: how confident Adapt is that the Intent has been correctly identified
a tagged list of entities: that can be used by Skills to perform functions
Turn on Pandora
Play Pandora
Play my Joan Jett Pandora station
The Adapt Intent Parser takes this input and generates a JSON data structure like this:
Adapt is useful for determining user intent quickly and accurately from natural language. It is particularly beneficial for applications with limited vocabularies - that is, where the User will only issue a small number of Utterances.
Adapt has a number of features.
Adapt is written to run on embedded system with limited resources. Adapt can be used as the engine to parse natural language on IoT devices like remote controls and hubs.
Adapt is written in Python. Python is very widely adopted and supported in the technical community. Because it is written in Python, Adapt will run on many different devices - from servers to a Raspberry Pi. Adapt is designed to be run cross-platform and can be deployed in software environments that include Android, iOS, Windows and Linux.
Because Adapt is small enough to run locally on an embedded device, it removes the dependency of having to parse intent in the cloud. This allows applications to function when they don't have an internet connection. Adapt is therefore suited to environments where the internet connection is slow, unreliable or intermittent.
Adapt Intent Parser requires Python 2.7 or above.
pip
installationNOTE: We recommend the use of virtual environments for development on Adapt and Mycroft. This allows for dependencies to be configured just for Adapt and your project, rather than installing them globally. This approach prevents conflicts between Adapt and other software.
To develop on Adapt itself, or try the examples, check out the repo from GitHub and set up a virtualenv
.
Verify the installation by running the example code from the Adapt repository.
To develop with the latest Adapt, install it via pip
into your project's virtualenv
:
To develop on Adapt itself, or try the examples, check out the repo from GitHub and set up a virtualenv
.
Verify the installation by running the example code from the Adapt repository.
First, Xcode must be installed and Apple’s license agreement accepted.
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
Next, install Adapt dependencies with brew
and python-pip
.
To develop with the latest Adapt, install it via pip
into your project's virtualenv
:
To develop on Adapt itself, or try the examples, check out the repo from GitHub and set up a virtualenv
.
Verify the installation by running the example code from the Adapt repository.
Adapt is useful for interpreting natural language input. For example, you might want to create a that allows a User to play a Pandora station. The Utterances a User might Speak include:
Applications - or Mycroft Skills - can then parse the JSON data take appropriate action - such as playing Joan Jett using the open source Pandora application .
If you are looking to use Adapt in a Mycroft Skill, please see
At Mycroft.AI, we believe that artficial intelligence is too important to be controlled by a few large companies. Adapt is open source, licensed under the Apache v2.0 license. Anyone can access the , change the software and use Adapt Intent Parser in new applications.
software powers the Internet. Artificial intelligence software, like Adapt Intent Parser, is gaining in importance. However, very few artificial intelligence software is open source. Here at Mycroft.AI, we believe that natural language processing is going to be a key component of many future technologies. By sharing our software we believe that we can help bring artificial intelligence to the open source community where it can be used to benefit millions of users world wide. We hope to work with other open source initiatives like and to ensure that the future of artificial intelligence is open for all.
Adapt Intent Parser was developed at Mycroft.AI by a team led by . Sean was previously a developer at both Siri and Amazon Echo.
pip
is a package manager used to install and manage software packages in Python. To use pip
you first need to .
Adapt is available on the making it easily installable using pip
.
You can also get the source code directly from the .
Next, install the and update brew
packages.