Socket
Book a DemoInstallSign in
Socket

n-clark

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n-clark

LUIS.ai wrapper

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

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

Keywords

LUIS

FAQs

Package last updated on 07 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts