if (FALSE) {
text <- "to administer medicince to animals is frequently a very difficult matter,
and yet sometimes it's necessary to do so"
nlp <- gl_nlp(text)
nlp$sentences
nlp$tokens
nlp$entities
nlp$documentSentiment
## vectorised input
texts <- c("The cat sat one the mat", "oh no it didn't you fool")
nlp_results <- gl_nlp(texts)
}
Run the code above in your browser using DataLab