0.0.4 • Published 6 years ago

sentence-intent v0.0.4

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
6 years ago

sentence-intent

Build Status

Extract the intent and potential context of a sentence. This modules intended use is for routing command based statements by generalizing what the likely intent of the sentence is.

Installation

This library is distributed on npm. In order to add it as a dependency, run the following command:

$ npm install sentence-intent --save

Example Usage

const sentenceIntent = require('sentence-intent');

const intent = new sentenceIntent('Can you turn up the music?');

console.log('intent: ' + intent.getIntent());
console.log('context: ' + intent.getContext());

If for what ever reason it can not discover the intent or context they will be returned as undefined.

License

Apache 2.0 - See LICENSE for more information.

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago