- MUST READ: Submission requirements
- Entry form template
Sentiment Checker is a module for sitecore that creates a shortcut on the review tab of the content editor and let you select a text content field to check on Sentiment intent of a text.
Example:
This readme file details how to install and use the Sentiment Checker Powershell Extension Module.
Category: Best Module for XM/XP or XM Cloud
The intention of this module is tho help Content editor to check on text Sentiment intention.
The module requires Sitecore Powershell Extensions It is only tested with version 6.4
- Use the Sitecore Installation wizard to install the package SitecoreonModule-1.0.0 1.zip
- Once the package has been installed all integration points in SPE needs to be rebuilt
- Rebuild integration points
- The module is good to go!
Note: If required change this line on the web.config in order to overwrite Content Security Policy restrictions
<add name="Content-Security-Policy"
value="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.fontawesome.com *.cloudflare.com; img-src 'self' data:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' 'unsafe-inline' https://fonts.gstatic.com *.fontawesome.com; upgrade-insecure-requests; block-all-mixed-content;"
/>
For the module to work it need a valid API key from https://nlpcloud.com/. One you get your API Key go to settings and fill your API key and API Url fields on the settings section.
We use a free tier of the nlpcloud.com that have some limitations:
- It have a limited ammount of request per hour
- It have a max char limit of 400 chars, more than that would cause a 404 response
Just loging on https://nlpcloud.com/ and your API keys should be generated
The Module shorcut is placed under the review tab of content Editor and it is called Sentiment
Steps to use it:
- Select the content that you need a text field to be checked on.
- Hit the Sentiment Button
- A popup is going to appear letting you to select the fields you want to check on.
- Click Ok
- Thats it , you get in percentage the context analysis of the Sentiment of that text field
Here the video https://youtu.be/rKG7n8xchAg
GET https://api.nlpcloud.io/v1/<model_name>/sentiment
Parameter | Type | Description |
---|---|---|
apiKey |
string |
Required. Your API key |
model_name |
string |
Required. Your API key |
https://docs.nlpcloud.com/?shell#sentiment-analysis
Client: Sitecore, Jquery, CSS