mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-03 21:24:11 +03:00
* Fix stupid error in Language.batch
This commit is contained in:
parent
e3db39dd21
commit
9e9d4c8706
|
@ -275,7 +275,7 @@ class Language(object):
|
|||
for text in texts]
|
||||
docs = []
|
||||
for text in texts:
|
||||
doc = self(text, tag=True, parse=False, entity=entity)
|
||||
docs.append(self(text, tag=True, parse=False, entity=entity))
|
||||
if self.parser and parse:
|
||||
self.parser.parse_batch(docs)
|
||||
return docs
|
||||
|
|
Loading…
Reference in New Issue
Block a user