if (FALSE) {
require (text2vec)
data (movie_review)
vectorizer = vectorize.docs (corpus = movie_review$review,
minphrasecount = 50, returndata = FALSE)
docs = vectorize.docs (corpus = movie_review$review, vectorizer = vectorizer)
query.docs (docs, movie_review$review [1], vectorizer)
query.docs (docs, docs [1, ], vectorizer)
}
Run the code above in your browser using DataLab