mirror of https://github.com/explosion/spaCy.git
* Don't over-ride pre-loaded POS tags, if set by special-cases
This commit is contained in:
parent
785c7ba76a
commit
1a075f77ff
|
@ -241,9 +241,10 @@ cdef class EnPosTagger:
|
|||
cdef atom_t[N_CONTEXT_FIELDS] context
|
||||
cdef TokenC* t = tokens.data
|
||||
for i in range(tokens.length):
|
||||
fill_context(context, i, t)
|
||||
t[i].fine_pos = self.model.predict(context)
|
||||
self.set_morph(i, t)
|
||||
if t[i].fine_pos == 0:
|
||||
fill_context(context, i, t)
|
||||
t[i].fine_pos = self.model.predict(context)
|
||||
self.set_morph(i, t)
|
||||
|
||||
def train(self, Tokens tokens, py_golds):
|
||||
cdef int i
|
||||
|
|
Loading…
Reference in New Issue