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.

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.1.tar.gz (96.3 kB 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.1-py3-none-any.whl (77.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for torchlingo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fc382a79060fef6b1398fcfd84386d379bd5219bce4b97994d0bf58a013d8a0e
MD5 7896400d5464cd56de5fd8e014e36020
BLAKE2b-256 107548c00888289956cd3d89fab56cb1246a2ab2fedd441e077ddf77e3a8421d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: torchlingo-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 77.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 742a992e4efc3b95a0a58a32240357a3e5619bf326d5894522b93d2902267a66
MD5 5af448c40cabf760d564aab1fab57a3d
BLAKE2b-256 52da5bf51cbe5fdc5e36136ea2c873cd7a72db6c649064dd955aa59bebbe9e28

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