get_common_words_single: Returns common words for a matrix

Description Usage Arguments Value

Description

Returns common words for a matrix

Usage

1
2
3
get_common_words_single(text, minDocFreq = 0, maxDocFreq = 1,
  minWordLength = 0, maxWordLength = Inf, weighting = "count",
  ngrams = 1, minCount = 1, verbose = FALSE)

Arguments

text

A vector of strings to be made into a matrix

minDocFreq

Minimum frequency of a word to be included (count or fraction)

maxDocFreq

Maxmimum frequency of a word to be included (count or fraction)

minWordLength

Minimum wordlength for a word to be included

maxWordLength

Maximum wordlength for a word to be included

weighting

Weighting to use. Choose between frequency, relFreq, relMaxFreq, logFreq, tfidf (See dfm_weight)

ngrams

Vector that specifies type of ngrams to generate

Value

A document feature matrix


jlricon/MaxClassify documentation built on May 29, 2019, 2:56 p.m.