tf_idf: tf_idf: how important is a word in a doc, relative to a set...

Description Usage Arguments Value Examples

Description

tf_idf: how important is a word in a doc, relative to a set of docs (tf*idf)

Usage

1
2
tf_idf(doc, docs, term, lower = TRUE, toss_punct = TRUE, toss_num = TRUE,
  gram_size = 1)

Arguments

doc
docs
term
lower
toss_punct
toss_num
gram_size

Value

num, term freq times inv doc freq

Examples

1
tf_idf(doc="im tim", docs=c("it is tim", "im tim"), term="tim")

lefft/lefftpack documentation built on May 8, 2019, 1:13 p.m.