-
Notifications
You must be signed in to change notification settings - Fork 0
[INSTALL]
- Python 3.9 or later
- Anki desktop (https://apps.ankiweb.net)
- AnkiConnect add-on installed in Anki (code: 2055492159)
- Git
Clone the repository and run the setup command.
git clone https://github.com/youssefea/tango.git
cd tango
make allmake all does three things: creates a virtual environment in .venv/, installs all Python dependencies, and downloads the spaCy English language model. This takes a few minutes on first run.
Copy the environment file and fill in your API keys.
cp .env.example .envOpen .env in any text editor and fill in MW_API_KEY at minimum. Get a free Merriam-Webster API key at https://dictionaryapi.com/register/index.htm.
make testAll unit tests should pass. If they do not, open an issue with the error output.
make run VIDEO_ID=dQw4w9WgXcQ DECK="English"Replace dQw4w9WgXcQ with any YouTube video ID that has English captions. Replace English with the name of an existing Anki deck.
If you want English definitions of non-English words, install the translation module.
make translate-setupThis installs argostranslate and PyTorch, which adds approximately 2GB to the installation size. Skip this if you only process English videos or want native-language definitions.