Ways to highlight most interesting phrases in a text using sentiment analysis #65
-
I'm looking at ways to highlight most interesting phrases in a text using sentiment analysis and the first way I thought I could do it is by identifying phrases which have the most scored words. Let's take this text as an example:
The bolded phrase has the most scored words, therefore it's highlighted as an interesting text to read. And a second question, the text above has |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please look at wink-nlp, which is a super set of our existing nlp packages. An live demo of a similar scenario can be found at How to perform sentiment analysis?; this demo computes the sentiment score of every line of a poem and highlights with the color intensity proportional to the computed score. The wink-nlp has built in method to highlight either a sentence, entity or a token in any desired format (e.g. markdown or html). Here is the output if you replace the poem by the above text: |
Beta Was this translation helpful? Give feedback.
Please look at wink-nlp, which is a super set of our existing nlp packages. An live demo of a similar scenario can be found at How to perform sentiment analysis?; this demo computes the sentiment score of every line of a poem and highlights with the color intensity proportional to the computed score. The wink-nlp has built in method to highlight either a sentence, entity or a token in any desired format (e.g. markdown or html). Here is the output if you replace the poem by the above text: