mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Delay binding in MakeDoc
This commit is contained in:
parent
52b48b415e
commit
8a6b35d266
|
@ -125,7 +125,7 @@ class BaseDefaults(object):
|
||||||
return Matcher(vocab)
|
return Matcher(vocab)
|
||||||
|
|
||||||
def MakeDoc(self, nlp, **cfg):
|
def MakeDoc(self, nlp, **cfg):
|
||||||
return nlp.tokenizer.__call__
|
return lambda text: nlp.tokenizer(text)
|
||||||
|
|
||||||
def Pipeline(self, nlp, **cfg):
|
def Pipeline(self, nlp, **cfg):
|
||||||
pipeline = []
|
pipeline = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user