mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +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)
|
||||
|
||||
def MakeDoc(self, nlp, **cfg):
|
||||
return nlp.tokenizer.__call__
|
||||
return lambda text: nlp.tokenizer(text)
|
||||
|
||||
def Pipeline(self, nlp, **cfg):
|
||||
pipeline = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user