TermFrequency: Term Frequency

Description Usage Arguments Value Examples

View source: R/termfrequency.R

Description

a term frequency hash for the tokens and documents of the corpus

Usage

1
TermFrequency(corpus)

Arguments

corpus

an object inheriting from class Corpus

Value

an object of class TermFrequency made up of Dict - the hashed tokens with term frequency by document name Labels - the document names from the corpus LabelCounts - the total counts of tokens for each Label

Examples

1
2
corpusEx<-Corpus(list('first'=c('a single entry document'),'second'=c('a two entry document','with two separate entries')))
termFreqEx <- TermFrequency(corpusEx)

duncankmckinnon/ezRnlp documentation built on Aug. 6, 2020, 1:28 a.m.