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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@datafire/azure_cognitiveservices_textanalytics

v4.0.0

Published

DataFire integration for Text Analytics Client

Readme

@datafire/azure_cognitiveservices_textanalytics

Client library for Text Analytics Client

Installation and Usage

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

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

Description

The Text Analytics API is a suite of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver best in class predictions. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview

Actions

Entities

The API returns a list of recognized entities in a given document. To get even more information on each recognized entity we recommend using the Bing Entity Search API by querying for the recognized entities names. See the Supported languages in Text Analytics API for the list of enabled languages.The API returns a list of known entities and general named entities ("Person", "Location", "Organization" etc) in a given document. Known entities are returned with Wikipedia Id and Wikipedia link, and also Bing Id which can be used in Bing Entity Search API. General named entities are returned with entity types. If a general named entity is also a known entity, then all information regarding it (Wikipedia Id, Bing Id, entity type etc) will be returned. See the Supported Entity Types in Text Analytics API for the list of supported Entity Types. See the Supported languages in Text Analytics API for the list of enabled languages.

azure_cognitiveservices_textanalytics.Entities({
  "input": {}
}, context)

Input

Output

keyPhrases.post

See the Text Analytics Documentation for details about the languages that are supported by key phrase extraction.

azure_cognitiveservices_textanalytics.keyPhrases.post({
  "input": {}
}, context)

Input

Output

languages.post

Scores close to 1 indicate 100% certainty that the identified language is true. A total of 120 languages are supported.

azure_cognitiveservices_textanalytics.languages.post({
  "input": {}
}, context)

Input

Output

Sentiment

Scores close to 1 indicate positive sentiment, while scores close to 0 indicate negative sentiment. A score of 0.5 indicates the lack of sentiment (e.g. a factoid statement). See the Text Analytics Documentation for details about the languages that are supported by sentiment analysis.

azure_cognitiveservices_textanalytics.Sentiment({
  "input": {}
}, context)

Input

Output

Definitions

BatchInput

  • BatchInput object
    • documents array

DetectedLanguage

  • DetectedLanguage object
    • iso6391Name string: A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr).
    • name string: Long name of a detected language (e.g. English, French).
    • score number: A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true.

EntitiesBatchResultItemV2dot1

  • EntitiesBatchResultItemV2dot1 object
    • entities array: Recognized entities in the document.
    • id string: Unique document identifier.

EntitiesBatchResultV2dot1

EntityRecordV2dot1

  • EntityRecordV2dot1 object
    • bingId string: Bing unique identifier of the recognized entity. Use in conjunction with the Bing Entity Search API to fetch additional relevant information.
    • matches array: List of instances this entity appears in the text.
    • name string: Entity formal name.
    • subType string: Entity sub type from Named Entity Recognition model
    • type string: Entity type from Named Entity Recognition model
    • wikipediaId string: Wikipedia unique identifier of the recognized entity.
    • wikipediaLanguage string: Wikipedia language for which the WikipediaId and WikipediaUrl refers to.
    • wikipediaUrl string: URL for the entity's English Wikipedia page.

ErrorRecord

  • ErrorRecord object
    • id string: Input document unique identifier the error refers to.
    • message string: Error message.

ErrorResponse

  • ErrorResponse object

Input

  • Input object
    • id string: Unique, non-empty document identifier.
    • text string

InternalError

  • InternalError object

KeyPhraseBatchResult

KeyPhraseBatchResultItem

  • KeyPhraseBatchResultItem object
    • id string: Unique document identifier.
    • keyPhrases array: A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document.
      • items string

LanguageBatchResult

LanguageBatchResultItem

  • LanguageBatchResultItem object
    • detectedLanguages array: A list of extracted languages.
    • id string: Unique document identifier.

MatchRecordV2dot1

  • MatchRecordV2dot1 object
    • length integer: Length (in Unicode characters) for the entity match text.
    • offset integer: Start position (in Unicode characters) for the entity match text.
    • text string: Entity text as appears in the request.

MultiLanguageBatchInput

MultiLanguageInput

  • MultiLanguageInput object
    • id string: Unique, non-empty document identifier.
    • language string: This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc.,
    • text string

Object

  • Object object

SentimentBatchResult

SentimentBatchResultItem

  • SentimentBatchResultItem object
    • id string: Unique document identifier.
    • score number: A decimal number between 0 and 1 denoting the sentiment of the document. A score above 0.7 usually refers to a positive document while a score below 0.3 normally has a negative connotation. Mid values refer to neutral text.