score: Score Corpus

Description Usage Arguments Author(s) See Also

Description

Annotate corpus with scores using various functions Implementation generates a TermDocumentMatrix as a first step and applies specified functions to it in order to generate score.

Usage

1
score(corpus, control, scoreFUNS)

Arguments

corpus

Text corpus to be annotated

control

Paramter to control TermDocumentMatrix generation, if missing default to control = list( tolower = TRUE, removePunctuation = TRUE, removeNumbers = TRUE, removeWords = list(stopwords("english")), stripWhitespace = TRUE, stemDocument = TRUE, minWordLength = 3, weighting = weightTf)

scoreFUNS

scoring functions to be used on TermDocumentMatrix, if missing defaults to scoreFUNS = list( polarity = list(), subjectivity = list(), pos_refs_per_ref = list(), neg_refs_per_ref = list(), senti_diffs_per_ref = list() )

replace

Specifies if existing corpus meta data.frame should be replaced, defaults to TRUE

Author(s)

Mario Annau

See Also

TermDocumentMatrix


ViennaR/SentimentAnalysis documentation built on May 9, 2019, 9:56 p.m.