Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.14 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.14 KB

botfuel-nlp-sdk

NLP web services wrapper for Node.js, includes:

How to setup

Install using npm:

npm install --save botfuel-nlp-sdk

How to use

  • Spell checking:
const { Spellchecking } = require('botfuel-nlp-sdk');

const spellchecker = new Spellchecking({appId: 'myAppId', appKey: 'myAppKey'});
spellchecker.compute({ sentence: 'you aer bad', key: 'EN_1'}).then(console.log);
  • Sentiment analysis:
const { SentimentAnalysis } = require('botfuel-nlp-sdk');

const sentimentAnalyzer = new SentimentAnalysis({appId: 'myAppId', appKey: 'myAppKey'});
sentimentAnalyzer.compute({ sentence: 'you are bad' }).then(console.log);
  • Entity extraction:
const { EntityExtraction } = require('botfuel-nlp-sdk');

const entityExtractor = new EntityExtraction({appId: 'myAppId', appKey: 'myAppKey'});
entityExtractor.compute({ sentence: 'Today, you are bad', locale: 'en'}).then(console.log);

License

See the LICENSE file.