8000 GitHub - avoidwork/n-clark: LUIS.ai wrapper
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

avoidwork/n-clark

Repository files navigation

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

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •  
0