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 from pypi through the below code:
Code: pip install translation-new
Usage
from translation_new.translator import Translator
translator = Translator()
translated_text = translator.translate("Hello, how are you?", lang="hi")
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file translation_new-0.2.3.tar.gz.
File metadata
- Download URL: translation_new-0.2.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23d2eecc8170b57d2d0ca3a5007800247f8134270e9ca153e6c0ca8d748d3396
|
|
| MD5 |
261b734c3434f29984236fd8a4ff8aca
|
|
| BLAKE2b-256 |
c5de6d28184f47738803d5fa86f51b5537c0e3b9281705d6f766ae7ff914cd15
|
File details
Details for the file translation_new-0.2.3-py3-none-any.whl.
File metadata
- Download URL: translation_new-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eca900171858422845f73317be01bbc182600be32b398ebafcc754beac5d902f
|
|
| MD5 |
4db4c99f395cd6a55e84630ba316ae96
|
|
| BLAKE2b-256 |
1d59b94f05cc86c038a23b3eb0248725fa0579abdcd602a0125bf440ee98b18a
|