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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -