knitr::opts_chunk$set(echo = TRUE)
library(spacyr)
txt <- c(doc1 = "Natural Language Processing is a branch of computer science that employs various Artificial Intelligence (AI) techniques to process content written in natural language. NLP-enhanced wikis can support users in finding, developing and organizing knowledge contained inside the wiki repository. ", 
  doc2 = "Paul earned a postgraduate degree from MIT.")
(tmp <- spacy_parse(txt, nounphrase = TRUE))
nounphrase_extract(tmp)
nounphrase_consolidate(tmp)


kbenoit/spacyr documentation built on April 14, 2024, 3:03 a.m.