Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

translation-new

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translation-new

A python package for Multi Lingual Translation using LLM

  • 0.2.3
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc