diff --git a/spacy/pipeline/pipes.pyx b/spacy/pipeline/pipes.pyx index 891e8d4e3..da3602b79 100644 --- a/spacy/pipeline/pipes.pyx +++ b/spacy/pipeline/pipes.pyx @@ -1093,6 +1093,8 @@ class EntityLinker(Pipe): self.kb = None self.cfg = dict(cfg) self.sgd_context = None + if not self.cfg.get("context_width"): + self.cfg["context_width"] = 128 def set_kb(self, kb): self.kb = kb