| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| # ChineseFileTranslator v1.0.0 β requirements.txt |
| # Author: algorembrant |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| # Install all core dependencies: |
| # pip install -r requirements.txt |
| # |
| # For offline translation backend (Helsinki-NLP MarianMT): |
| # CPU: pip install torch --index-url https://download.pytorch.org/whl/cpu |
| # CUDA: pip install torch --index-url https://download.pytorch.org/whl/cu121 |
| # Then: |
| # pip install transformers sentencepiece sacremoses |
| # |
| # Platform note: |
| # On Linux/Mac, keyboard events require no extra steps. |
| # On Windows, run the terminal as Administrator if hotkeys fail. |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| # ββ Core translation backend ββββββββββββββββββββββββββββββββββββββββββββββ |
| deep-translator>=1.11.4 |
|
|
| # ββ Progress bar (optional but recommended) βββββββββββββββββββββββββββββββ |
| tqdm>=4.66.0 |
|
|
| # ββ Clipboard support (optional) βββββββββββββββββββββββββββββββββββββββββ |
| pyperclip>=1.8.2 |
|
|
| # ββ Offline translation backend (optional) βββββββββββββββββββββββββββββββ |
| # Uncomment the lines below OR follow the install note above for PyTorch. |
| # transformers>=4.40.0 |
| # sentencepiece>=0.2.0 |
| # sacremoses>=0.1.1 |
| # torch>=2.2.0 # <-- install separately with correct CUDA URL |
|
|