mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
set default context width
This commit is contained in:
parent
6e809e9b8b
commit
60f299374f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user