R DocumentTermMatrix control list not working, silently ignores unknown parameters

后端 未结 2 507
面向向阳花
面向向阳花 2020-12-31 18:03

I have two following DTM-s:

dtm <- DocumentTermMatrix(t)

dtmImproved <- DocumentTermMatrix(t, 
               control=list(minWordLength = 4, minDocFr         


        
2条回答
  •  我在风中等你
    2020-12-31 18:31

    dtmImproved <- DocumentTermMatrix(t, control=list(wordLengths=c(4, 15), 
                                       bounds = list(global = c(5,Inf))))
    

    This solves the problem! The lack of proper documentation really mads me down (:

提交回复
热议问题