mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
* Fix parallel_parse script
This commit is contained in:
parent
18eaa44835
commit
dc61056183
|
@ -43,7 +43,7 @@ def save_parses(batch_id, input_, out_dir, n_threads, batch_size):
|
|||
if path.exists(out_loc):
|
||||
return None
|
||||
print('Batch', batch_id)
|
||||
nlp = spacy.en.English(parser=False)
|
||||
nlp = spacy.en.English()
|
||||
nlp.matcher = None
|
||||
with open(out_loc, 'wb') as file_:
|
||||
texts = (strip_meta(text) for text in input_)
|
||||
|
|
Loading…
Reference in New Issue
Block a user