sentiment: Performs sentiment analysis

Description Usage Arguments Details Value Author(s) Examples

View source: R/sentiment.R

Description

Assegna una sentiment per ogni testo in text

Usage

1
2
3
4
5
6
7
8
sentiment(
  text,
  algorithm = "Mattivio",
  vocabularies = NULL,
  normalizzaTesti = TRUE,
  get_labels = TRUE,
  ...
)

Arguments

text

vector of texts

algorithm

"Mattivio" (default), "Maddalena" or a function returning the score.

vocabularies

vocabolarioMattivio (default if algorithm == "Mattivio"), vocabolariMadda (default if algorithm == "Maddalena") or an object used by the algorithm

normalizzaTesti

TRUE by default

get_labels

(TRUE) if FALSE the quantitavive score is given, if TRUE (the default) the labels -1,0,+1 are provied (i.e. sign(score))

Details

aggiungere dettagli qui

Value

l'output etc

Author(s)

Maddalena Branca, Mattia Da Pont, Livio Finos

Examples

1
sentiment(c("ciao bella", "mi piaci", "wow!!","good","casa", "farabutto!","ti odio"))

livioivil/TextWiller documentation built on Nov. 30, 2020, 3:17 a.m.