mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +03:00
* Fix copying of tokenizer data in init_model
This commit is contained in:
parent
248a2b4b0f
commit
1629b33082
|
@ -19,6 +19,7 @@ import plac
|
|||
from pathlib import Path
|
||||
|
||||
from shutil import copyfile
|
||||
from shutil import copytree
|
||||
import codecs
|
||||
|
||||
from spacy.en import get_lex_props
|
||||
|
@ -35,7 +36,7 @@ def setup_tokenizer(lang_data_dir, tok_dir):
|
|||
src = lang_data_dir / filename
|
||||
dst = tok_dir / filename
|
||||
if not dst.exists():
|
||||
copyfile(src, dst)
|
||||
copyfile(str(src), str(dst))
|
||||
|
||||
|
||||
def _read_clusters(loc):
|
||||
|
|
Loading…
Reference in New Issue
Block a user