mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-11 17:56:30 +03:00
Set pos attribute in morphologizer
This commit is contained in:
parent
a6d153b0a0
commit
f742900f83
|
@ -94,6 +94,8 @@ class Morphologizer(Pipe):
|
|||
# Now add the analysis, and set the hash.
|
||||
try:
|
||||
doc.c[j].morph = self.vocab.morphology.add(feats)
|
||||
if doc[j].morph.pos != 0:
|
||||
doc.c[j].pos = doc[j].morph.pos
|
||||
except:
|
||||
print(offsets)
|
||||
print(doc_guesses[j])
|
||||
|
|
Loading…
Reference in New Issue
Block a user