![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
botbuilder-sentimentmiddleware
Advanced tools
Middleware providing sentiment value for incoming messages
Branch | Status | Recommended NPM package version |
---|---|---|
master |
This piece of middleware will get sentiment score of each incoming message text using Cognitive Services Text Analytics API and therefore requires a key. There is a free tier which meets most demo/PoC needs. You can get more info at https://azure.microsoft.com/en-us/services/cognitive-services/text-analytics/
The implementation detects the language of the text and get the sentiment of the same. Currently, nearly 17 languages are supported. Full list of supported languages can be seen at https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages
Available via NPM package botbuilder-sentimentmiddleware
Install into your project using the following command in the package manager;
npm install botbuilder-sentimentmiddleware --save
First create sentimentAnalysisMiddleware object and add it to middleware pipeline
const sentimentAnalysisMiddleware = new SentimentAnalysisMiddleware({textAnalyticsAzureRegion:'{e.g. westeurope}', textAnalyticsKey:'{your text analytics key}',language:'en'})
botFrameworkAdapter.use(sentimentAnalysisMiddleware);
Subsequently you can obtain sentiment score for incoming message in following way:
await sentimentAnalysisMiddleware.sentimentScore(context)
If not used within middleware pipeline, you can still use getSentimentScore
method to call cognitive service and obtain the sentiment score on demand.
await sentimentAnalysisMiddleware.getSentimentScore(context)
FAQs
Middleware providing sentiment value for incoming messages
The npm package botbuilder-sentimentmiddleware receives a total of 0 weekly downloads. As such, botbuilder-sentimentmiddleware popularity was classified as not popular.
We found that botbuilder-sentimentmiddleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.