Returns an HTML character highlighting the sentiments.
Source:R/sentiment_highlighter.R
      sentiment_highlighter.RdReturns an HTML character highlighting the sentiments.
Usage
sentiment_highlighter(
  text,
  lexicon = c("nrc", "bing", "loughran", "afinn"),
  token = "words",
  lexicon_dir = "."
)Arguments
- text
 the text to highlight.
- lexicon
 the sentiment lexicon to use.
- token
 unit for tokenizing. Reasonable options are words, sentences, lines, and paragraphs. See
tidytext::unnest_tokens()for more details.- lexicon_dir
 directory where the sentiment directories are located.