npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/azure_cognitiveservices_luis_runtime

v4.0.0

Published

DataFire integration for Language Understanding Intelligent Service (LUIS) Endpoint API for running predictions and extracting user intentions and entities from utterances.

Downloads

11

Readme

@datafire/azure_cognitiveservices_luis_runtime

Client library for Language Understanding Intelligent Service (LUIS) Endpoint API for running predictions and extracting user intentions and entities from utterances.

Installation and Usage

npm install --save @datafire/azure_cognitiveservices_luis_runtime
let azure_cognitiveservices_luis_runtime = require('@datafire/azure_cognitiveservices_luis_runtime').create({
  apiKeyHeader: ""
});

.then(data => {
  console.log(data);
});

Description

Actions

Prediction_Resolve2

Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.

azure_cognitiveservices_luis_runtime.Prediction_Resolve2({
  "appId": "",
  "q": ""
}, context)

Input

  • input object
    • appId required string: The LUIS application ID (guid).
    • q required string: The utterance to predict.
    • timezoneOffset number: The timezone offset for the location of the request.
    • verbose boolean: If true, return all intents instead of just the top scoring intent.
    • staging boolean: Use the staging endpoint slot.
    • spellCheck boolean: Enable spell checking.
    • bing-spell-check-subscription-key string: The subscription key to use when enabling bing spell check
    • log boolean: Log query (default is true)

Output

Prediction_Resolve

Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.

azure_cognitiveservices_luis_runtime.Prediction_Resolve({
  "appId": "",
  "q": ""
}, context)

Input

  • input object
    • appId required string: The LUIS application ID (Guid).
    • q required Q
    • timezoneOffset number: The timezone offset for the location of the request.
    • verbose boolean: If true, return all intents instead of just the top scoring intent.
    • staging boolean: Use the staging endpoint slot.
    • spellCheck boolean: Enable spell checking.
    • bing-spell-check-subscription-key string: The subscription key to use when enabling bing spell check
    • log boolean: Log query (default is true)

Output

Definitions

APIError

  • APIError object: Error information returned by the API
    • message string: Cause of the error.
    • statusCode string: HTTP Status code

CompositeChildModel

  • CompositeChildModel object: Child entity in a LUIS Composite Entity.
    • type required string: Type of child entity.
    • value required string: Value extracted by LUIS.

CompositeEntityModel

  • CompositeEntityModel object: LUIS Composite Entity.
    • children required array: Child entities.
    • parentType required string: Type/name of parent entity.
    • value required string: Value for composite entity extracted by LUIS.

EntityModel

  • EntityModel object: An entity extracted from the utterance.
    • endIndex required number: The position of the last character of the matched entity within the utterance.
    • entity required string: Name of the entity, as defined in LUIS.
    • startIndex required number: The position of the first character of the matched entity within the utterance.
    • type required string: Type of the entity, as defined in LUIS.

EntityWithResolution

  • EntityWithResolution
    • endIndex required number: The position of the last character of the matched entity within the utterance.
    • entity required string: Name of the entity, as defined in LUIS.
    • startIndex required number: The position of the first character of the matched entity within the utterance.
    • type required string: Type of the entity, as defined in LUIS.
    • resolution required object: Resolution values for pre-built LUIS entities.

EntityWithScore

  • EntityWithScore
    • endIndex required number: The position of the last character of the matched entity within the utterance.
    • entity required string: Name of the entity, as defined in LUIS.
    • startIndex required number: The position of the first character of the matched entity within the utterance.
    • type required string: Type of the entity, as defined in LUIS.
    • score required number: Associated prediction score for the intent (float).

IntentModel

  • IntentModel object: An intent detected from the utterance.
    • intent string: Name of the intent, as defined in LUIS.
    • score number: Associated prediction score for the intent (float).

LuisResult

  • LuisResult object: Prediction, based on the input query, containing intent(s) and entities.
    • alteredQuery string: The corrected utterance (when spell checking was enabled).
    • compositeEntities array: The composite entities extracted from the utterance.
    • entities array: The entities extracted from the utterance.
    • intents array: All the intents (and their score) that were detected from utterance.
    • query string: The input utterance that was analized.
    • sentimentAnalysis Sentiment
    • topScoringIntent IntentModel

Q

  • Q string: The utterance to predict.

Sentiment

  • Sentiment object: Sentiment of the input utterance.
    • label string: The polarity of the sentiment, can be positive, neutral or negative.
    • score number: Score of the sentiment, ranges from 0 (most negative) to 1 (most positive).