sentiment
Purpose
Finds documents that contain argument terms with positive or negative sentiments from the parent node Sentiment Analysis.
Arguments
Takes one or several arguments:
-
the first required argument restricts the sentiment type ("Positive", "Negative");
-
the next optional arguments define the sentiment attributes. If the arguments are not specified, the function finds all the positive or negative terms.
-
degree attribute specifies the degree of sentiment.
In order to filter out the results of the sentiment() function, one can use the regex() function. Thus, the query sentiment(Positive, Match:="regex(.*good.*)") will leave in the results the positive sentiments containing the word "good", for example, "The chances are very good", "the asset is good quality".