I have 2 very simple sentences which produce very different sentiment values from the IBM Watson NLU engine. So I am at a loss how to configure the APIs to handle each sentence consistently.
"text": "WidgetX has been recently created. It is terrible.",
"features": {
"sentiment": {},
"entities": {
"sentiment": true
},
"keywords": {
"sentiment": true
}
}
Produces a neutral sentiment:
"keywords": [
{
"text": "WidgetX",
"sentiment": {
"score": 0,
"label": "neutral"
},
"relevance": 0.5,
"count": 1
}
],
"entities": [
{
"type": "Organization",
"text": "WidgetX",
"sentiment": {
"score": 0,
"label": "neutral"
},
"relevance": 0.978348,
"count": 1,
"confidence": 0.562355
}
]
Whereas changing the text to below produces the correct very negative sentiment:
"text": "WidgetX has been recently created, and it is terrible.",
"keywords": [
{
"text": "WidgetX",
"sentiment": {
"score": -0.964476,
"label": "negative"
},
"relevance": 0.5,
"count": 1
}
],
"entities": [
{
"type": "Organization",
"text": "WidgetX",
"sentiment": {
"score": -0.964476,
"label": "negative"
},
"relevance": 0.978348,
"count": 1,
"confidence": 0.319847
}
]