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

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -