mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-14 11:36:24 +03:00
Remove generic type
Seems to cause error on Python 3.8 with Cython?
This commit is contained in:
parent
adf2b1c8a9
commit
f79e4c094d
|
@ -43,7 +43,7 @@ DEFAULT_TAGGER_MODEL = Config().from_str(default_model_config)["model"]
|
||||||
scores=["tag_acc"],
|
scores=["tag_acc"],
|
||||||
default_score_weights={"tag_acc": 1.0},
|
default_score_weights={"tag_acc": 1.0},
|
||||||
)
|
)
|
||||||
def make_tagger(nlp: Language, name: str, model: Model[List[Doc], List[Floats2d]]):
|
def make_tagger(nlp: Language, name: str, model: Model):
|
||||||
"""Construct a part-of-speech tagger component.
|
"""Construct a part-of-speech tagger component.
|
||||||
|
|
||||||
model (Model[List[Doc], List[Floats2d]]): A model instance that predicts
|
model (Model[List[Doc], List[Floats2d]]): A model instance that predicts
|
||||||
|
|
Loading…
Reference in New Issue
Block a user