* Don't over-ride pre-loaded POS tags, if set by special-cases

This commit is contained in:
Matthew Honnibal 2014-12-30 23:26:32 +11:00
parent 785c7ba76a
commit 1a075f77ff
1 changed files with 4 additions and 3 deletions

View File

@ -241,6 +241,7 @@ cdef class EnPosTagger:
cdef atom_t[N_CONTEXT_FIELDS] context
cdef TokenC* t = tokens.data
for i in range(tokens.length):
if t[i].fine_pos == 0:
fill_context(context, i, t)
t[i].fine_pos = self.model.predict(context)
self.set_morph(i, t)