Skip to content

Add tokens_sample() #1478

Description

@koheiw

We have dfm_sample() and corpus_sample(), but why not tokens_sample()?
I am tied of doing

toks <- tokens(data_corpus_big)
toks[sample(seq_along(toks), 10)]

just to check how tokenization is going.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions