mirror of
https://github.com/explosion/spaCy.git
synced 2025-09-21 19:42:37 +03:00
fix adding .spacy suffix
This commit is contained in:
parent
0fd265e3f3
commit
b5e08e24bd
|
@ -133,5 +133,5 @@ def apply(
|
||||||
for doc in tqdm.tqdm(nlp.pipe(datagen, batch_size=batch_size, n_process=n_process)):
|
for doc in tqdm.tqdm(nlp.pipe(datagen, batch_size=batch_size, n_process=n_process)):
|
||||||
docbin.add(doc)
|
docbin.add(doc)
|
||||||
if output_file.suffix == "":
|
if output_file.suffix == "":
|
||||||
output_file += ".spacy"
|
output_file = output_file.with_suffix(".spacy")
|
||||||
docbin.to_disk(output_file)
|
docbin.to_disk(output_file)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user