mirror of https://github.com/explosion/spaCy.git
* Fix Language.pipe
This commit is contained in:
parent
048dfe35aa
commit
249dccbe95
|
@ -284,7 +284,7 @@ class Language(object):
|
||||||
n_threads=n_threads, batch_size=batch_size)
|
n_threads=n_threads, batch_size=batch_size)
|
||||||
if self.entity and entity:
|
if self.entity and entity:
|
||||||
stream = self.entity.pipe(stream,
|
stream = self.entity.pipe(stream,
|
||||||
n_threads=n_threads, batch_size=batch_size)
|
n_threads=1, batch_size=batch_size)
|
||||||
for doc in stream:
|
for doc in stream:
|
||||||
yield doc
|
yield doc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue