From 426f3349d43918491a8bc7e9ba8e7fe19c0cfc19 Mon Sep 17 00:00:00 2001 From: Kevin Humphreys Date: Wed, 24 Aug 2022 15:04:09 +0200 Subject: [PATCH] fix type --- spacy/pipeline/entityruler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline/entityruler.py b/spacy/pipeline/entityruler.py index d1b05334e..e5852e4e8 100644 --- a/spacy/pipeline/entityruler.py +++ b/spacy/pipeline/entityruler.py @@ -90,7 +90,7 @@ class EntityRuler(Pipe): ent_id_sep: str = DEFAULT_ENT_ID_SEP, patterns: Optional[List[PatternType]] = None, scorer: Optional[Callable] = entity_ruler_score, - fuzzy: Optional[float] = None, + fuzzy: float = None, ) -> None: """Initialize the entity ruler. If patterns are supplied here, they need to be a list of dictionaries with a `"label"` and `"pattern"`