Compute term-frequency, inverse-document-frequency.
compute_tfidf_at(data = NULL, token = NULL, doc = NULL) compute_tfidf(..., token, doc)
| data | data.frame. |
|---|---|
| token | bare for NSE; character for SE. Name of column in |
| doc | bare for NSE; character for SE. Name of column in |
| ... | dots. Parameters to pass directly to |
data.frame.
Calls tidytext::bind_tf_idf() internally. Note that the
output 'tfidf' column is named tf_idf because this is the convention
of the tidytext package.