mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 08:12:24 +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)
|
self._ensure_examples(get_examples)
|
||||||
if labels is not None:
|
if labels is not None:
|
||||||
self.cfg["labels_morph"] = labels["labels_morph"]
|
self.cfg["labels_morph"] = labels["morph"]
|
||||||
self.cfg["labels_pos"] = labels["labels_pos"]
|
self.cfg["labels_pos"] = labels["pos"]
|
||||||
else:
|
else:
|
||||||
# First, fetch all labels from the data
|
# First, fetch all labels from the data
|
||||||
for example in get_examples():
|
for example in get_examples():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user