Wordseer / stanford-corenlp-python

Python wrapper for Stanford CoreNLP tools
GNU General Public License v2.0
58 stars 27 forks source link

Raw_parse() doesn't work properly. #12

Open ilyakhov opened 9 years ago

ilyakhov commented 9 years ago

For

corenlp.raw_parse("Several woman told me I have lying eyes.")['sentences'][0]['words']

I expect a list of tuples for all words in sentence, but I get the list with only one tuple for the first word:

>>> corenlp.raw_parse("Several woman told me I have lying eyes.")['sentences'][0]['words']
[('Several', {'CharacterOffsetEnd': '7', 'Lemma': 'several', 'PartOfSpeech': 'JJ', 'CharacterOffsetBegin': '0'})]

I'm using Python 2.7.8 and stanford-corenlp-full-2015-04-20 .