Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

essentiment-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

essentiment-analyzer

Analyse sentiment of incoming message using micosoft azure

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Sentiment Analyzer

This is a simple package you can use to analyse the sentiment of message using microsoft's azure sentiment analysis

Prerequisites

  • A (30 days free) microsoft azure api key

Installation

  • Run npm install microsoft-sentiment

Getting Started

  1. Run npm install

  2. The analyzer takes 2 parameters, the region your azure service is hosted and the api key

  3. To analyse a message call it with 4 parameters:

    The message you want to analyse
    language, the language your message is in, for supported languages check the microsoft webpage
    The threshold you want you message to be above (or below)
    A message ID

Sample:

const sentimentAnalyzer = require('microsoft-sentiment');

let analyser = new sentimentAnalyzer('westeurope', '<your api key here>');

analyser.analyseMessage('your message to be analysed here', 'en', 0.75, 1234 (sentimentBelowThreshold) => {
    console.log(sentimentBelowThreshold)
});

FAQs

Package last updated on 20 Oct 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc