Create list of words to learn for a movie based on your anki knowledge.
make venv
source ./bin/venv/activate
ORvenv
- Activating the virtual environment,
venv
is alias that can be created in your shell
- Activating the virtual environment,
pip install requirements.txt
wget -O ./models/lid.176.bin https://dl.fbaipublicfiles.com/fasttext/supervised-models/lid.176.bin
- Download fasttext model to detect the language of the file:
cp config.ini.template config.ini
and edit the Anki propertiespython main.py PATH_TO_SRT.srt
- cchardet - detect the file encoding of the subtitles
- fasttext - detection of the subtitles language
- pycountry - linking countries and their acronyms for language detections
- srt - parsing the subtitles
- Spacy - lemmatisation
- genanki - export Anki pacakge
- Open Anki Desktop
- Ensure that it is synchronised (Sync)
- File -> Export
- Export format: *.apkg
- Include: (select your deck)
- Export