Fix mistake in ner feature

This commit is contained in:
Matthew Honnibal 2017-05-31 03:01:02 +02:00
parent 8a693c2605
commit 53a3824334
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ cdef cppclass StateC:
ids[4] = this.E(0)-1 ids[4] = this.E(0)-1
else: else:
ids[4] = -1 ids[4] = -1
if ids[3] < (this.length+1): if (ids[3]+1) < this.length:
ids[5] = this.E(0)+1 ids[5] = this.E(0)+1
else: else:
ids[5] = -1 ids[5] = -1