Access sentence-level annotations
cnlp_get_sentence(annotation)
an annotation object
Returns an object of class c("tbl_df", "tbl", "data.frame")
containing one row for every sentence in the corpus.
The returned data frame includes at a minimum the following columns:
"id" - integer. Id of the source document.
"sid" - integer. Sentence id.
The coreNLP backend also currently returns a column "sentiment" that gives a score from 0 (most negative) to 4 (most positive) for how positive the tone of the sentence is predicted to be.
Manning, Christopher D., Mihai Surdeanu, John Bauer, Jenny Finkel, Steven J. Bethard, and David McClosky. 2014. The Stanford CoreNLP Natural Language Processing Toolkit. In: Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pp. 55-60.
Socher, Richard, et al. "Recursive deep models for semantic compositionality over a sentiment treebank." Proceedings of the conference on empirical methods in natural language processing (EMNLP). Vol. 1631. 2013.