R !!!quanteda v3 https://github.com/quanteda/quanteda/blob/master/NEWS.md#changes-and-additions !! quantedaはv3になって、ずいぶんと構成が変わった。 !インストールのし直しと、 {{pre install.packages("quanteda.textstats") install.packages("quanteda.textplots") }} !関数の書き換えが必要 {{pre ■古い方法 nicerJP.dfm <- dfm(nicerJP.corpus, stem=T, remove_punct=T) nicerJP.dfm ◆新しい方法 nicerJP.dfm2 <- dfm_wordstem(dfm(tokens(nicerJP.corpus, remove_punct = T))) nicerJP.dfm2 nicerJP.dfm3 <- dfm_wordstem(dfm(tokens_remove(tokens(nicerJP.corpus, remove_punct = T), stopwords("en")))) }} !!References https://qiita.com/paithiov909/items/a47a097836e8a9ec12ef