Gravatar for

Question by whyy, Sep 22, 2014 3:28 AM

display text analytics sentiment score

Is it possible to display the avg score of the sentiment in facet?

1 Reply
Gravatar for

Answer by Martin Laporte, Sep 23, 2014 4:53 AM

Facets support performing aggregate operations on numeric fields, for each value that is displayed (of another field). In the current release we have nothing OOTB to display an aggregate for all the results (instead of per field value).

Still, I already had a similar need, so I finally took some time to add a stock component doing just that. I've put preliminary documentation here: It should land in the snapshot build in a few minutes ( if you want to experiment with it.

Gravatar for

Comment by whyy, Sep 24, 2014 4:02 AM

But where can i get the text analytics sentiment score value from? which field?

Gravatar for

Comment by psoucy, Sep 24, 2014 4:24 PM

whyy: it is not available, but you can probably get the score using the SDK code of the by looking for the SalienceMetadataExtractor. Be aware that text analytics is using tagging and thus, only a string representation of the score would be possible, so you cannot use numerical operators or range facets

Ask a question