mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 21:00:19 +03:00
fix type
This commit is contained in:
parent
ee985a382e
commit
9600fe1d99
|
@ -90,7 +90,7 @@ class EntityRuler(Pipe):
|
||||||
ent_id_sep: str = DEFAULT_ENT_ID_SEP,
|
ent_id_sep: str = DEFAULT_ENT_ID_SEP,
|
||||||
patterns: Optional[List[PatternType]] = None,
|
patterns: Optional[List[PatternType]] = None,
|
||||||
scorer: Optional[Callable] = entity_ruler_score,
|
scorer: Optional[Callable] = entity_ruler_score,
|
||||||
fuzzy: Optional[float] = None,
|
fuzzy: float = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize the entity ruler. If patterns are supplied here, they
|
"""Initialize the entity ruler. If patterns are supplied here, they
|
||||||
need to be a list of dictionaries with a `"label"` and `"pattern"`
|
need to be a list of dictionaries with a `"label"` and `"pattern"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user