We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have dfm_sample() and corpus_sample(), but why not tokens_sample()? I am tied of doing
dfm_sample()
corpus_sample()
tokens_sample()
toks <- tokens(data_corpus_big) toks[sample(seq_along(toks), 10)]
just to check how tokenization is going.
The text was updated successfully, but these errors were encountered:
Good idea. Let's add a
tokens_sample(x, size = ndoc(x), replace = FALSE, prob = NULL, by = NULL, ...)
that works just as corpus_sample() does to sample from documents.
Sorry, something went wrong.
koheiw
No branches or pull requests
We have
dfm_sample()
andcorpus_sample()
, but why nottokens_sample()
?I am tied of doing
just to check how tokenization is going.
The text was updated successfully, but these errors were encountered: