Educational PyTorch NMT library for coursework and instruction.
Project description
TorchLingo
TorchLingo is an educational PyTorch library for Neural Machine Translation (NMT). Designed for students and instructors, it provides a clean, well-documented implementation of the Transformer architecture for learning and experimentation.
Features
- 🎓 Educational Focus: Clean, readable code designed for learning
- 🔄 Transformer Architecture: Full encoder-decoder implementation with multi-head attention
- 📝 SentencePiece Tokenization: BPE and Unigram subword models
- 🔁 Back-Translation: Data augmentation for improved translation quality
- 🌍 Multilingual Support: Train a single model for multiple language pairs
- 📊 TensorBoard Integration: Monitor training progress in real-time
Installation
pip install torchlingo
For development:
pip install torchlingo[dev]
Documentation
For full documentation, tutorials, and API reference, visit:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torchlingo-0.0.4.tar.gz.
File metadata
- Download URL: torchlingo-0.0.4.tar.gz
- Upload date:
- Size: 99.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5956fb98af4ac04f8188726a3ca6a3a9aaa562a21524becfac2e5858a68be440
|
|
| MD5 |
1a1924d99c3462396d19f30383039cea
|
|
| BLAKE2b-256 |
11975141b61119a67fb17111fe364fd20b48d66569e7c15c1a849f0e6f2de583
|
File details
Details for the file torchlingo-0.0.4-py3-none-any.whl.
File metadata
- Download URL: torchlingo-0.0.4-py3-none-any.whl
- Upload date:
- Size: 78.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49bcb34ae1d0d1a45b340d557cb73ef2af83064ab62645d94052e3f15a4090ad
|
|
| MD5 |
e14fd3eb99fed70f2ee6c40e7dd3b9f4
|
|
| BLAKE2b-256 |
e96c75dcae3beda76abe91616a5e01e20cd780d87487b05c35be880891220f82
|