Use the Trask NLP in wingbot chatbot
npm i -S wingbot-trasknlp
const { TraskNlpModel } = require('wingbot-trasknlp');
const { ai } = require('wingbot');
const traskNlpModel = new TraskNlpModel({
model: 'name-of-your-model',
subscribtionKey: '<your subscribtion key>',
apiKey: '<your api key>'
});
ai.register(traskNlpModel);
- TraskNlpModel
AI Plugin Model
AI Plugin Model
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 |
Kind: global typedef
Param | Type |
---|---|
entity | string |
value | string |
score | number |
Kind: global typedef
Param | Type |
---|---|
intent | string |
score | number |
[entities] | Array.<Entity> |
Kind: global typedef
Param | Type |
---|---|
entities | Array.<Entity> |
intents | Array.<Intent> |