This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, go to https://wso2.com/documentation/.
Sentiment Extension
Sentiment Analysis refers to the process of determining whether a piece of writing is positive, negative or neutral. It is also known as opinion mining, deriving the opinion or deriving the attitude of a given text.
Sentiment function
Syntax | <int> sentiment:getRate(<string> text) |
---|---|
Extension Type | Function |
Description | The sentiment:getRate is applied to some text in string format to obtain a rating as to whether it is positive, negative or neutral. |
Parameters | |
Example |
e.g., An event stream is defined as follows.
The sentiment extension can be used as follows.
Here, the input is the input sentence in |