Skip to content

Commit

Permalink
Update Proficiency v0.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Sep 25, 2023
1 parent 817c193 commit 8c30006
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions data/deps.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"cupy": "12.2.0",
"lxml": "4.9.3",
"thinc-apple-ops": "0.1.3",
"thinc-apple-ops": "0.1.4",
"torch": "2.0.1",
"rapidfuzz": "3.3.0",
"rapidfuzz": "3.3.1",
"spacy_cpu_model": "3.6.0",
"spacy_trf_model": "3.6.1"
}
8 changes: 5 additions & 3 deletions deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ def download_word_wise_file(

extract_folder = custom_lemmas_folder(get_plugin_path())
if not db_path.exists():
filename = f"wiktionary_{lemma_lang}_{gloss_lang}_v{PROFICIENCY_VERSION}.bz2"
filename = (
f"wiktionary_{lemma_lang}_{gloss_lang}_v{PROFICIENCY_VERSION}.tar.bz2"
)
if is_kindle and use_kindle_ww_db(lemma_lang, prefs):
filename = f"kindle_en_en_v{PROFICIENCY_VERSION}.bz2"
filename = f"kindle_en_en_v{PROFICIENCY_VERSION}.tar.bz2"
url = f"{PROFICIENCY_RELEASE_URL}/{filename}"
download_and_extract(url, extract_folder)

Expand All @@ -186,7 +188,7 @@ def download_word_wise_file(
if not klld_path.exists():
url = (
PROFICIENCY_RELEASE_URL
+ f"/kll.{lemma_lang}.{gloss_lang}_v{PROFICIENCY_VERSION}.klld.bz2"
+ f"/kll.{lemma_lang}.{gloss_lang}_v{PROFICIENCY_VERSION}.klld.tar.bz2"
)
download_and_extract(url, extract_folder)

Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from typing import Any, TypedDict

CJK_LANGS = ["zh", "ja", "ko"]
PROFICIENCY_VERSION = "0.5.8"
PROFICIENCY_VERSION = "0.5.9"
PROFICIENCY_RELEASE_URL = (
f"https://github.com/xxyzz/Proficiency/releases/download/v{PROFICIENCY_VERSION}"
)
Expand Down

0 comments on commit 8c30006

Please sign in to comment.