From 60f299374f61d4ab394f035bed8f39493669214d Mon Sep 17 00:00:00 2001 From: svlandeg Date: Mon, 15 Jul 2019 12:03:09 +0200 Subject: [PATCH] set default context width --- spacy/pipeline/pipes.pyx | 2 ++ 1 file changed, 2 insertions(+) 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