Gravatar for joyceyurh@strateqgrp.com

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 mlaporte@coveo.com

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: https://developers.coveo.com/display/JsSearch/Aggregate+Component. It should land in the snapshot build in a few minutes (https://developers.coveo.com/display/JsSearch/Downloading) if you want to experiment with it.

Gravatar for joyceyurh@strateqgrp.com

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 psoucy@coveo.com

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 http://onlinehelp.coveo.com/en/ces/7.0/Administrator/textanalyticscsharpdeveloperframework.htm 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