toy_corpus <- "Once upon a time there was a tiny toy corpus.
It consisted of three sentences. And it lived happily ever after."
tks <- tokenize(toy_corpus)
print(tks, n = 1000)
tks[3:12]
print(as_tokens(tks[3:12]), n = 1000)
as_tokens(tail(tks))
Run the code above in your browser using DataLab