yoctol-nlu-node
Yoctol Natural Language Understanding SDK for Node.js
Install
$ npm install ynlu
or using yarn:
$ yarn add ynlu
Usage
const Client = ; // put your token into clientconst client = Client; { const classifier = client; const result = await classifier;} { const classifier = client; // the second parameter is Boolean, represent exactly match or not // default to true const result1 = await classifier; // exactly match = true const result2 = await classifier; const result3 = await classifier;} { const extractor = client; const entities = await extractor;}
Options
Customize endpoint
const Client = ; const client = Client;