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

In text2vec package in R, could not find function "create_vocab_corpus"

我试图理解来自 http://dsnotes.com/articles/text2vectext2vec 包 但在接下来的步骤中:

现在我们可以构造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)

此代码引发错误:

Error: could not find function "create_vocab_corpus"

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