texts <- c("this is science",
"science is #fascinatingthing",
"this is a scientific approach",
"science is everywhere",
"the beauty of science")
ngrams_dictionary(texts)
ngrams_dictionary(texts,
clean = FALSE)
ngrams_dictionary(texts,
clean = TRUE,
ngram_min = 2,
ngram_max = 2)
Run the code above in your browser using DataLab