Implementations in both R and Python are available at:
The method is described in:
Slides for a presentation at the New Directions in Text as Data conference, October 2016.
Bag of what? Simple noun phrase extraction for corpus analysis.
Abram Handler, Matt Denny, Hanna Wallach, and Brendan O'Connor.
NLP+CSS Workshop at EMNLP 2016.