* Fix Language.pipe

This commit is contained in:
Matthew Honnibal 2016-02-05 12:47:57 +01:00
parent 048dfe35aa
commit 249dccbe95
1 changed files with 1 additions and 1 deletions

View File

@ -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