Name | meta-translate JSON |
Version |
0.0.1
JSON |
| download |
home_page | |
Summary | |
upload_time | 2023-12-30 08:44:53 |
maintainer | |
docs_url | None |
author | TAWSIF AHMED |
requires_python | |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Meta Translate
Meta Translate is a Python wrapper designed to streamline the utilization of Meta AI's Seamless text and speech translation model. This wrapper simplifies complex operations into a single Python code line, enabling users to effortlessly translate texts and speech into multiple languages.
## Key Features
- **Efficiency:** Meta Translate combines multiple line operations into a concise Python code call, making translation tasks more straightforward.
- **Local Model Loading:** Unlike other Python libraries such as Bark and Google TTS engines, Meta Translate loads models natively on your local system before performing the translation process.
- **Privacy:** Meta Translate provides a superior solution by ensuring that models operate locally, offering both free unlimited translation tasks and enhanced privacy.
## CODENAME
Meta Translate is developed under the THUNDERSTORM PROJECT.
## Quickstart
Install the library using pip:
```bash
pip install meta_translate
```
```Python
from meta_translate import load_seamless_m4t_model
from meta_translate import text_to_translated_text
# Load the model
model_name = "facebook/hf-seamless-m4t-medium"
processor, model = load_seamless_m4t_model(model_name)
# Perform translation
text_to_translate = """Technology has transformed the way we communicate and access information. In today's interconnected world, the rapid advancement of digital tools has made communication more instantaneous and information more accessible than ever before."""
translated_result = text_to_translated_text(model, processor, text_to_translate, tgt_lang="spa")
# Print the output
print(translated_result)
```
## LICENCE
ALL RIGHTS RESERVED UNDER MIT LICENSE AND META AI TERMS AND CONDITIONS
Raw data
{
"_id": null,
"home_page": "",
"name": "meta-translate",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "TAWSIF AHMED",
"author_email": "sleeping4cat@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/64/d5/fa95a659559bf026a798e427c1182dedf121a1dd09d741bd7f98fabcc32b/meta_translate-0.0.1.tar.gz",
"platform": null,
"description": "# Meta Translate\r\n\r\nMeta Translate is a Python wrapper designed to streamline the utilization of Meta AI's Seamless text and speech translation model. This wrapper simplifies complex operations into a single Python code line, enabling users to effortlessly translate texts and speech into multiple languages.\r\n\r\n## Key Features\r\n\r\n- **Efficiency:** Meta Translate combines multiple line operations into a concise Python code call, making translation tasks more straightforward.\r\n \r\n- **Local Model Loading:** Unlike other Python libraries such as Bark and Google TTS engines, Meta Translate loads models natively on your local system before performing the translation process.\r\n\r\n- **Privacy:** Meta Translate provides a superior solution by ensuring that models operate locally, offering both free unlimited translation tasks and enhanced privacy.\r\n\r\n## CODENAME\r\n\r\nMeta Translate is developed under the THUNDERSTORM PROJECT.\r\n\r\n## Quickstart\r\n\r\nInstall the library using pip:\r\n\r\n```bash\r\npip install meta_translate\r\n```\r\n\r\n```Python \r\nfrom meta_translate import load_seamless_m4t_model\r\nfrom meta_translate import text_to_translated_text\r\n\r\n# Load the model\r\nmodel_name = \"facebook/hf-seamless-m4t-medium\"\r\nprocessor, model = load_seamless_m4t_model(model_name)\r\n\r\n# Perform translation\r\ntext_to_translate = \"\"\"Technology has transformed the way we communicate and access information. In today's interconnected world, the rapid advancement of digital tools has made communication more instantaneous and information more accessible than ever before.\"\"\"\r\ntranslated_result = text_to_translated_text(model, processor, text_to_translate, tgt_lang=\"spa\")\r\n\r\n# Print the output\r\nprint(translated_result)\r\n```\r\n\r\n## LICENCE\r\nALL RIGHTS RESERVED UNDER MIT LICENSE AND META AI TERMS AND CONDITIONS\r\n",
"bugtrack_url": null,
"license": "",
"summary": "",
"version": "0.0.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bad60d5528f8bb95139518f02dc51771b952b707bedfd524d66b900adbfa6664",
"md5": "597235d217b30cc54021c3338557d9f3",
"sha256": "8074975ef8d6274faad1b0510b8007bfaaca585f5ec2543fb3c6d4bd347e55e3"
},
"downloads": -1,
"filename": "meta_translate-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "597235d217b30cc54021c3338557d9f3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3058,
"upload_time": "2023-12-30T08:44:50",
"upload_time_iso_8601": "2023-12-30T08:44:50.318890Z",
"url": "https://files.pythonhosted.org/packages/ba/d6/0d5528f8bb95139518f02dc51771b952b707bedfd524d66b900adbfa6664/meta_translate-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "64d5fa95a659559bf026a798e427c1182dedf121a1dd09d741bd7f98fabcc32b",
"md5": "e5bb29fb5b3cf4ef6f94d0aa1888ae21",
"sha256": "45b67a8721af985104d40bf16b4da62adcfe785d5b470d937cf23b396055c6a8"
},
"downloads": -1,
"filename": "meta_translate-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "e5bb29fb5b3cf4ef6f94d0aa1888ae21",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2648,
"upload_time": "2023-12-30T08:44:53",
"upload_time_iso_8601": "2023-12-30T08:44:53.692033Z",
"url": "https://files.pythonhosted.org/packages/64/d5/fa95a659559bf026a798e427c1182dedf121a1dd09d741bd7f98fabcc32b/meta_translate-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-30 08:44:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "meta-translate"
}