Skip to main content

Sentiment

This extension performs sentiment analysis using Afinn Wordlist-based approach.

Features

  • getRate (Function)

    This provides the sentiment value for a given string as per the AFINN word list.

getRate

This provides the sentiment value for a given string as per the AFINN word list.

Syntax

<INT> sentiment:getRate(<String> text)

QUERY PARAMETERS

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
textThe input text for which the sentiment value should be derived.STRINGNoNo

EXAMPLE 1

sentiment:getRate("George is a good person")

This returns the sentiment value for the given input string by referring to the AFINN word list. In this scenario, the output is 3.