mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Merge branch 'master' into develop
This commit is contained in:
commit
7e3ac2cd41
2
setup.py
2
setup.py
|
@ -142,7 +142,7 @@ def gzip_language_data(root, source):
|
||||||
base = Path(root) / source
|
base = Path(root) / source
|
||||||
for jsonfile in base.glob("**/*.json"):
|
for jsonfile in base.glob("**/*.json"):
|
||||||
outfile = jsonfile.with_suffix(jsonfile.suffix + ".gz")
|
outfile = jsonfile.with_suffix(jsonfile.suffix + ".gz")
|
||||||
if outfile.is_file() and outfile.stat().st_ctime > jsonfile.stat().st_ctime:
|
if outfile.is_file() and outfile.stat().st_mtime > jsonfile.stat().st_mtime:
|
||||||
# If the gz is newer it doesn't need updating
|
# If the gz is newer it doesn't need updating
|
||||||
print("Skipping {}, already compressed".format(jsonfile))
|
print("Skipping {}, already compressed".format(jsonfile))
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue
Block a user