* Questionable fix to problem in Span.root

This commit is contained in:
Matthew Honnibal 2016-02-05 19:18:35 +01:00
parent 8bd16ce8f7
commit e5c447e237

View File

@ -194,6 +194,9 @@ cdef class Span:
if words_to_root < current_best:
current_best = words_to_root
root = i
if root == -1:
return self.doc[self.start]
else:
return self.doc[root]
property lefts: