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_new.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.2.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.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: translation_new-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 87705e2bd0031817851201eb8ddc6a404e2b8cbb6ed89e5224bc0e5e40463cd7
MD5 6e7e9dc97a2ada189464071af6860a5a
BLAKE2b-256 1cb06c81ee9892f5a82266db89d1a2bf907dc87fe66464376ac1fefaac215fff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for translation_new-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3351e0ee93cef8cb93b7b690ba9808d93851badb0898cae8b3c6abd3e5d059e4
MD5 11b79e059ee45b3b2ce73380d07ee795
BLAKE2b-256 13eeab6dc7bd46ac56ec307c1512b7f4b86e398594bd6ba6cb14d571a34f6ebf

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