r - How to weight a TermDocumentMatrix by document length? -
i'm doing text mining in r using tm package. i'm familiar weighttfidf weighting option:
dtm <- documenttermmatrix(docs, control = list(dictionary = c("argument"), weighting = weighttfidf)) however, documents deal contain term i'm looking for, different degrees - therefore tfidf not work. how can weight termdocumentmatrix length of documents?
Comments
Post a Comment