n-clark

1.1.1 • Public • Published

n-clark

LUIS.ai wrapper

Example

const luis = require('n-clark')({id: 'appId', key: 'subscriptionKey', host: 'eastus2'}),
  data = await luis.predict('input text here');

console.log(data);

Configuration

id = ''

LUIS.ai application ID

key = ''

Azure subscription key

host = 'westus'

LUIS.ai host to interact with

params = ''

Extra query string parameters (staging=true, etc.)

verbose = true

Verbose mode

debug = false

Debugging mode, captures input/output in this.results (Set of [status, input, output])

API

predict (text)

Promise

Makes a request to LUIS.ai to predict the context of the request

reply (text, context[, set])

Promise

Makes a request to LUIS.ai to analyse the reply in context

Properties

results

Set

Set of LUIS.ai requests & responses

License

MIT

Package Sidebar

Install

npm i n-clark

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

5.61 kB

Total Files

4

Last publish

Collaborators

  • avoidwork