Trask NLP API integration for Wingbot
Use the Trask NLP in wingbot chatbot
Installing
npm i -S wingbot-trasknlp
Usage
const TraskNlpModel = ;const ai = ; const traskNlpModel = model: 'name-of-your-model' subscribtionKey: '<your subscribtion key>' apiKey: '<your api key>'; ai;
API
Classes
- TraskNlpModel
AI Plugin Model
Typedefs
TraskNlpModel
AI Plugin Model
new TraskNlpModel(options, [log])
Param | Type | Description |
---|---|---|
options | Object |
|
options.subscribtionKey | string |
the subscribtion key header |
options.apiKey | string |
the api key |
options.model | string |
model name (part of the url) |
[options.cacheSize] | number |
|
[options.serviceUrl] | string |
|
[log] | Object |
logging function |
Object
Entity : Kind: global typedef
Param | Type |
---|---|
entity | string |
value | string |
score | number |
Object
Intent : Kind: global typedef
Param | Type |
---|---|
intent | string |
score | number |
[entities] | Array.<Entity> |
Object
Result : Kind: global typedef
Param | Type |
---|---|
entities | Array.<Entity> |
intents | Array.<Intent> |