mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 17:52:31 +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]
|
for text in texts]
|
||||||
docs = []
|
docs = []
|
||||||
for text in texts:
|
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:
|
if self.parser and parse:
|
||||||
self.parser.parse_batch(docs)
|
self.parser.parse_batch(docs)
|
||||||
return docs
|
return docs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user