mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-11 17:56:30 +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 pathlib import Path
|
||||||
|
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
|
from shutil import copytree
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
from spacy.en import get_lex_props
|
from spacy.en import get_lex_props
|
||||||
|
@ -35,7 +36,7 @@ def setup_tokenizer(lang_data_dir, tok_dir):
|
||||||
src = lang_data_dir / filename
|
src = lang_data_dir / filename
|
||||||
dst = tok_dir / filename
|
dst = tok_dir / filename
|
||||||
if not dst.exists():
|
if not dst.exists():
|
||||||
copyfile(src, dst)
|
copyfile(str(src), str(dst))
|
||||||
|
|
||||||
|
|
||||||
def _read_clusters(loc):
|
def _read_clusters(loc):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user