Skip to content

relwell/corenlp-xml-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data abstraction library for Stanford CoreNLP XML parses.

You can install it with pip:

me@box$ pip install corenlp_xml

Using it is as easy as:

from corenlp_xml.document import Document
d = Document(corenlp_xml_output_string)
sentences = d.sentences
word_to_pos = dict([(token.word, token.pos) for token in sentences[0].tokens])

To learn more:

Copyright Robert Elwell, distributed under the Apache License (see LICENSE.txt).

About

A Python library responsible for handling interactions with Stanford CoreNLP's XML output

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages