This update adds a way to use the part-of-speech tags documented in the Ngram syntax, as well as a few examples, including this one by Ben Zimmer:
I've also added a little security to make sure that ggram receives a vector characters for phrases (sending it a data frame will crash your R session).
It would probably be a good idea to have the Ngram syntax page cited somewhere. I can submit a revision of the README file for the package, if you are okay with it.
This update adds a way to use the part-of-speech tags documented in the Ngram syntax, as well as a few examples, including this one by Ben Zimmer:
I've also added a little security to make sure that
ggram
receives a vector characters for phrases (sending it a data frame will crash your R session).It would probably be a good idea to have the Ngram syntax page cited somewhere. I can submit a revision of the README file for the package, if you are okay with it.