Skip to content

Conversation

@dnc1994
Copy link

@dnc1994 dnc1994 commented Oct 24, 2015

When there is only one sentence in the input, document[u'sentences'][u'sentence'] returns a OrderedDict instead of a list, thus causing a KeyError when trying to indexing through it.
This bug can fixed by simply putting raw_sent_list into a list when such case is present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant