diff --git a/README.md b/README.md index 8ff89cc..5f58c44 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,17 @@ creates anki hsk decks from a list of words ## Installation ```console -git clone https://github.com/resemble-ai/chatterbox +install qwen models https://github.com/QwenLM/Qwen3-TTS + modelscope download --model Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice --local_dir ./Qwen3-TTS-12Hz-0.6B-CustomVoice git clone https://gitea.wolfang.info.ve/wolfang/anki-hsk-creator +install cuda 13.2 https://developer.nvidia.com/cuda-downloads +install pythorch for cuda 13.2 https://pytorch.org/get-started/locally/ git clone https://gitea.wolfang.info.ve/wolfang/anki-hsk-creator-data +set local .env file +HF_TOKEN = +DATA_FOLDER = +GWEN_FOLDER = +ARGOS_DEVICE_TYPE = auto ``` ## License diff --git a/src/anki_hsk_creator/__about__.py b/src/anki_hsk_creator/__about__.py index 227859b..1a2a73e 100644 --- a/src/anki_hsk_creator/__about__.py +++ b/src/anki_hsk_creator/__about__.py @@ -3,4 +3,4 @@ # SPDX-FileCopyrightText: 2026-present Wolfang Torres # # SPDX-License-Identifier: GPL-3.0-or-later -__version__ = "0.2.3" +__version__ = "0.2.4" diff --git a/src/anki_hsk_creator/proccessor.py b/src/anki_hsk_creator/proccessor.py index 665e1e3..dd27fa3 100644 --- a/src/anki_hsk_creator/proccessor.py +++ b/src/anki_hsk_creator/proccessor.py @@ -125,7 +125,12 @@ def dictionary_bulk_process(words_list: list[str], process_file: ProcessFile): meanings_text = "\n".join( f"{n+1}: {meaning}" for n, meaning in enumerate(pos_meanings) ) - entry = entries[0] + pos_entries = [] + for meaning in pos_meanings: + for ent in entries: + if meaning in ent.meanings: + pos_entries.append(ent) + entry = pos_entries[0] tsv_writer.writerow( { "n": number,