veritaserum v0.2.1 Veritaserum View Source

Sentiment analisis based on AFINN-165, emojis and some enhancements.

Also supports:

  • emojis (❤️, 😱...)
  • boosters (very, really...)
  • negators (don't, not...).

Link to this section Summary

Functions

Returns a sentiment value for the given text

Link to this section Functions

Link to this function

analyze(input) View Source
analyze([String.t()] | String.t()) :: [integer()] | integer()

Link to this function

analyze(input, list) View Source
analyze(String.t(), [{:return, :score_and_marks}]) ::
  {number(), [{atom(), number(), String.t()}]}

Returns a sentiment value for the given text

iex> Veritaserum.analyze(["I ❤️ Veritaserum", "Veritaserum is really awesome"])
[3, 5]

iex> Veritaserum.analyze("I love Veritaserum")
3