powered by
Generate IDF dict from a list of documents.
get_idf(x, stop_word = STOPPATH, path = NULL)
a list of character
stopword path
output path
a data.frame or a file
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.
https://en.wikipedia.org/wiki/Tf-idf#Inverse_document_frequency_2
# NOT RUN { get_idf(list(c("abc","def"),c("abc"," "))) # }
Run the code above in your browser using DataLab