A Tidy Data Model for Natural Language Processing using cleanNLP
Taylor Arnold
, The R Journal (2017) 9:2, pages 248-267.
Abstract Recent advances in natural language processing have produced libraries that extract low level features from a collection of raw texts. These features, known as annotations, are usually stored internally in hierarchical, tree-based data structures. This paper proposes a data model to represent annotations as a collection of normalized relational data tables optimized for exploratory data analysis and predictive modeling. The R package cleanNLP, which calls one of two state of the art NLP libraries (CoreNLP or spaCy), is presented as an implementation of this data model. It takes raw text as an input and returns a list of normalized tables. Specific annotations provided include tokenization, part of speech tagging, named entity recognition, sentiment analysis, dependency parsing, coreference resolution, and word embeddings. The package currently supports input text in English, German, French, and Spanish.
Received: 2017-03-27; online 2017-06-28, supplementary material, (3.4 KiB)@article{RJ-2017-035, author = {Taylor Arnold}, title = {{A Tidy Data Model for Natural Language Processing using cleanNLP}}, year = {2017}, journal = {{The R Journal}}, doi = {10.32614/RJ-2017-035}, url = {https://doi.org/10.32614/RJ-2017-035}, pages = {248--267}, volume = {9}, number = {2} }