| get_idf | R Documentation |
Generate IDF dict from a list of documents.
get_idf(x, ..., stop_word = NULL, stop_word_file = NULL, path = NULL)
x |
a list of character vectors. Each vector represents a document of already-segmented words. |
... |
Must be empty. This enforces that optional arguments such as
|
stop_word |
Optional character vector of stop words supplied directly. |
stop_word_file |
Optional file path containing one stop word per line. |
path |
Optional output file path. When |
Input list contains multiple character vectors with words, and each vector represents a document.
Stop words will be removed from the result.
If path is not NULL, it will write the result to the path.
A data frame with name and count columns, or a file path
(invisibly) when path is supplied.
get_idf(list(c("abc", "def"),c("abc", " ")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.