Wingbot plugin for Trask NLP
npm install wingbot-trasknlpUse the Trask NLP in wingbot chatbot
```
npm i -S wingbot-trasknlp
`javascript
const { TraskNlpModel } = require('wingbot-trasknlp');
const { ai } = require('wingbot');
const traskNlpModel = new TraskNlpModel({
model: 'name-of-your-model',
subscribtionKey: '
apiKey: '
});
ai.register(traskNlpModel);
``
-----------------
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 |
Object| Param | Type |
| --- | --- |
| entity | string |
| value | string |
| score | number |
Object| Param | Type |
| --- | --- |
| intent | string |
| score | number |
| [entities] | Array.<Entity> |
Object| Param | Type |
| --- | --- |
| entities | Array.<Entity> |
| intents | Array.<Intent> |