if (FALSE) {
spacy_initialize()
txt <- c(doc1 = "Natural language processing is a branch of computer science.",
doc2 = "Paul earned a postgraduate degree from MIT.")
spacy_extract_nounphrases(txt)
spacy_extract_nounphrases(txt, output = "list")
}
Run the code above in your browser using DataLab