txt1 = c(
"I love natural language processing (NLP)!",
"I've been in this city for 10 years. I really like here!",
"However, my computer is not among the \"Top 10\" list."
)
tokenize(txt1, simplify=FALSE)
tokenize(txt1) %>% cat(sep="\n----\n")
txt2 = text2vec::movie_review$review[1:5]
texts = tokenize(txt2)
txt2[1]
texts[1:20] # all sentences in txt2[1]
Run the code above in your browser using DataLab