mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Upd morphologizer
This commit is contained in:
parent
835070cedc
commit
3b2a78720c
|
@ -146,8 +146,8 @@ class Morphologizer(Tagger):
|
|||
"""
|
||||
self._ensure_examples(get_examples)
|
||||
if labels is not None:
|
||||
self.cfg["labels_morph"] = labels["labels_morph"]
|
||||
self.cfg["labels_pos"] = labels["labels_pos"]
|
||||
self.cfg["labels_morph"] = labels["morph"]
|
||||
self.cfg["labels_pos"] = labels["pos"]
|
||||
else:
|
||||
# First, fetch all labels from the data
|
||||
for example in get_examples():
|
||||
|
|
Loading…
Reference in New Issue
Block a user