extract nouns and verbs from a text dataframe and save it in two different dataframes in R


Keywords:r 


Question: 

This question already has an answer here:


1 Answer: 

That is not strictly a trivial task. You could load a library with the parts of speech for each word (e.g. OpenNLP -> Maxent_POS_Tag_Annotator), but some of them may be either one part of speech or another depending upon context, so that makes this a much harder task programmatically to get perfect. Hope the OpenNPL package helps though.