Skip to main content

Educational PyTorch NMT library for coursework and instruction.

Project description

TorchLingo

PyPI version Python 3.10+ License: AGPL v3

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.

Acknowledgements

This project was initially developed by Josh Christensen as part of his undergraduate work at BYU.

"I hope that TorchLingo will be a valuable resource for students learning about neural machine translation, and that they will consider improving this project and the entire world with the knowledge they gain."
— Josh Christensen

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

torchlingo-0.0.8.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchlingo-0.0.8-py3-none-any.whl (91.4 kB view details)

Uploaded Python 3

File details

Details for the file torchlingo-0.0.8.tar.gz.

File metadata

  • Download URL: torchlingo-0.0.8.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for torchlingo-0.0.8.tar.gz
Algorithm Hash digest
SHA256 92856702bc003f92da04398838d9019f4a8ca8c1da1853556b765ee36935ca6d
MD5 996e75ac867ecb824d51a431fa02171f
BLAKE2b-256 57f2dfd808419839c9b91e5aa5ef9fdf3961f849d454b4c27389af54c8df0f90

See more details on using hashes here.

File details

Details for the file torchlingo-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: torchlingo-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 91.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for torchlingo-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 af3e9355c48c6816955f3428ecba806a38371d6079092a4b0aaba79f2b32ffae
MD5 b53ea4e34e616cea5b66ac50b8245492
BLAKE2b-256 8d017ffbf49cdbb83fd02b1bc17fc33dffbdf1aa540790c0503bed9dd2475c1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page