Skip to main content

A python package for Multi Lingual Translation using LLM

Project description

Translation Package

Overview This package provides a translation service using the facebook/mbart-large-50-many-to-many-mmt model. It supports translating text between multiple languages, including automatic language detection. This is useful for integrating translation capabilities into your applications.

Features
Multi-language translation: Supports 50+ languages. Automatic language detection: Detects the language of the input text. Uses facebook/mbart-large-50-many-to-many-mmt model: State-of-the-art multilingual translation model. Simple API: Easy integration into your Python projects. Installation Using Poetry If you're using Poetry to manage dependencies, follow these steps:

Clone this repository:

git clone https://github.com/manojprabhakar90/translation.git

You can directly install the package through pip install translation-new

Usage

from translation_new.translator import Translator

translator = Translator()

translated_text = translator.translate("Hello, how are you?", lang="hi")

print(translated_text)

Supported Languages

This package supports translation between the following languages (identified by their ISO codes):

Arabic (ar) Bengali (bn) Chinese (zh) French (fr) German (de) Hindi (hi) Spanish (es) And many more! For a complete list of supported languages, please check the LANGUAGE_CODES in the Translator class.

Contributions

We welcome contributions to improve the translation package. If you'd like to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Push to the branch (git push origin feature-branch).
  5. Create a pull request with a description of your changes.

License

This project is licensed under the MIT License - 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

translation_new-0.2.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

translation_new-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file translation_new-0.2.0.tar.gz.

File metadata

  • Download URL: translation_new-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for translation_new-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a279e57eeb6f5e860849386642eaa234e5a36ea5bf61742b3ba59e30bc7a9dcf
MD5 8342f14b00e3d99e5acc39271b80771e
BLAKE2b-256 6e59196092ed2c05f24ebd4152fee0f3eaf86fbdefadc0ed8fd5566a7452fa0a

See more details on using hashes here.

File details

Details for the file translation_new-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for translation_new-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 599e0ed56d71c171fdc57a421acfde27578cb6be6b42202053ebd83b6fc970bd
MD5 723da923f07b5f48cf357e052694b516
BLAKE2b-256 f6aeb5b99803c0afbffc0d6a9b9977aed0eb9fe27fc0c0558abaffe3757b4a38

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