Delay binding in MakeDoc

This commit is contained in:
Matthew Honnibal 2016-10-16 11:41:55 +02:00
parent 52b48b415e
commit 8a6b35d266

View File

@ -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 = []