Skip to main content

Sentiment

Sentiment Object

KEYTYPEDESCRIPTION
subsentenceslist of Subsentences Sentiment Element ObjectSource of all sentiments elements divided by subsentences
elementslist of Sentiment Element ObjectSpecific source for all sentiment elements in the sentence
valuesSentiment Values Objectnormalized total values for sentiment

Sentiment values are available at the following levels of granularity: sentence, subsentence and element.

Subsentences Sentiment Object

KEYTYPEDESCRIPTION
sentencestringSource of all sentiments elements divided by subsentences
start_idintId of the first token of the subsentence
end_idintId of the last token of the subsentence
elementslist of Sentiment Element ObjetsSpecific source for all sentiment elements in the subsentence
valuesSentiment Values Objectnormalized values for sentiment of subsentence

Sentiment Element Object

KEYSUBKEYTYPEDESCRIPTIONCONSTRAINTS
sourceindexintIndex of the source word for this element-
-lemmastringsource's lemma-
-lemmastringsource's source-
subjectindexintIndex of the subject for this element-
-lemmastringsubject's lemma-
-sourcestringsubject's source-
targetindexintIndex of the target for this element-
-lemmastringtarget's lemma-
-sourcestringtarget's source-
value-floatIndice of the sentiment-1 < value < 1

Subject is the word which represents the subject of the action1

Source is the word which conveys the sentiment

Target is the word which represents the target of the sentiment

Sentiment Values Object

KEYTYPEDESCRIPTIONCONSTRAINTS
positivefloatnormalized addition of all positive sentiment values in the sentence0 <= positive < 1
negativefloatnormalized addition of all negative sentiment values in the sentence-1 < negative <= 0
totalfloatpositive + negative-1 < total < 1

Values are calculated either by using sentiment elements objects if available, or by a prediction model at the subsentence level. Values are normalized to stay in the the [-1 : 1] interval between element, subsentence and sentence level therefore comparisons should be made made with elements of the same depth.