繁体   English   中英

在R中的text2vec包中,找不到函数“ create_vocab_corpus”

[英]In text2vec package in R, could not find function “create_vocab_corpus”

我试图从http://dsnotes.com/articles/text2vec理解text2vec包,但是在以下步骤中:

现在我们可以构建DTM。 同样,由于所有与语料库构建相关的功能都具有流API,因此我们必须创建迭代器并将其提供给create_vocab_corpus函数:

it <- itoken(movie_review[['review']], preprocess_function = tolower,
             tokenizer = word_tokenizer, chunks_number = 10, progessbar = F)
corpus <- create_vocab_corpus(it, vocabulary = vocab)

此代码引发错误:

错误:找不到函数“ create_vocab_corpus”

请参阅最新版本(0.3)的教程: https : //cran.r-project.org/web/packages/text2vec/vignettes/text-vectorization.html v 0.3中有一些API中断。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM