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.

License

This project is licensed under the Apache License

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: translation_new-0.2.1.tar.gz
  • Upload date:
  • Size: 3.0 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.1.tar.gz
Algorithm Hash digest
SHA256 f110d2079915b29471da9062ad1eef76268c7578c4ef612c34cb27b151b123d6
MD5 b0838be37e8a5cbad50d650ff4b3a4ca
BLAKE2b-256 ee26d4fdc74b99dfc7d8ecd65a0d4aadb1af1e74002100031a54c8d7a0013b16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for translation_new-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3aa2cb1c9e4e35c59d8d89bc13410daac8ce5037ead3889c3fe2578097a29557
MD5 b1dfdd0b30e6a4687a5729a5215d1ec7
BLAKE2b-256 6324f425da1e29fcfedaa11a88176ad5aa2bf5f70ae6a4cc49f406df37f0bd3c

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