Skip to main content

Easily automate multilingual translations for your projects with co-op-translator, powered by advanced LLM technology.

Project description

Project

Co Op Translator

Easily automate multilingual translations for your projects powered by advanced LLM technology.

Python package License: MIT GitHub contributors GitHub issues GitHub pull-requests PRs Welcome

GitHub watchers GitHub forks GitHub stars

Overview of Co Op Translator

Co Op Translator is a tool designed to automate multilingual translations for various projects using advanced Large Language Model (LLM) technology. This project aims to simplify the process of translating content into multiple languages, making it accessible and efficient for developers.

Python Package

Co Op Translator Python package designed to automate multilingual translations across all files in your project. Powered by advanced Language Learning Models (LLMs), it simplifies the localization process by providing accurate and efficient translations.

Co Op Translator scans all your project files and translates all Markdown documents and even text within images found in your folders. This comprehensive approach ensures that every part of your project is accessible to a global audience.

By integrating Co Op Translator into your workflow, you can:

  • Automate Translations: Easily translate text in your project files into multiple languages.
  • Comprehensive Coverage: Translate all Markdown files and text within images in your project directories.
  • Advanced LLM Technology: Utilize cutting-edge language models for high-quality translations.
  • Simplify Localization: Streamline the process of localizing your project for international markets.
  • Easy Integration: Seamlessly integrate with your existing project setup.

Co Op Translator empowers developers to focus on core functionalities while effortlessly managing multilingual support.

Here is an example of how Co Op Translator can be used to translate text in images and Markdown files in your project:

Example

Key Features:

  • Multilingual Translation: Supports translation into multiple languages, leveraging the power of LLMs.
  • Automation: Automates the translation process, reducing manual effort and increasing consistency.
  • Integration: Easily integrates with existing projects, providing a seamless translation experience.

Getting Started:

  1. Setting Up the Development Environment:

    • Create a virtual environment:
      python -m venv venv
      
    • Activate the virtual environment:
      • For Windows:
        venv\Scripts\activate.bat
        
      • For Mac/Linux:
        source venv/bin/activate
        
  2. Installing Required Packages:

    • Install the necessary packages:
      pip install -r requirements.txt
      
  3. Environment Variables:

    • Create an .env file in the root directory by copying the provided .env.template file.
    • Fill in the environment variables as guided.
  4. Installing the Package:

    • Install the package in editable mode:
      pip install -e .
      
  5. Running Tests:

    • Ensure the virtual environment is activated and run tests:
      pytest tests/
      

Sample Notebooks:

Repository Structure:

  • data/: Contains data files.
  • notebooks/: Jupyter notebooks for examples and tutorials.
  • src/co_op_translator/: Source code for the translator.
  • tests/: Test cases for the project.

Getting started with Co Op Translator

How to Use Co Op Translator

  1. Set up Azure resources before starting
  2. Create an '.env' file in the root directory
  3. Install the Co Op translator package
  4. Use Co Op translator in your project

Prerequisites

  • Azure AI Services resource
  • Azure OpenAI resource
  • Python 3.10 or higher

Responsible AI

Microsoft is committed to helping our customers use our AI products responsibly, sharing our learnings, and building trust-based partnerships through tools like Transparency Notes and Impact Assessments. Many of these resources can be found at https://aka.ms/RAI. Microsoft’s approach to responsible AI is grounded in our AI principles of fairness, reliability and safety, privacy and security, inclusiveness, transparency, and accountability.

Large-scale natural language, image, and speech models - like the ones used in this sample - can potentially behave in ways that are unfair, unreliable, or offensive, in turn causing harms. Please consult the Azure OpenAI service Transparency note to be informed about risks and limitations.

The recommended approach to mitigating these risks is to include a safety system in your architecture that can detect and prevent harmful behavior. Azure AI Content Safety provides an independent layer of protection, able to detect harmful user-generated and AI-generated content in applications and services. Azure AI Content Safety includes text and image APIs that allow you to detect material that is harmful. We also have an interactive Content Safety Studio that allows you to view, explore and try out sample code for detecting harmful content across different modalities. The following quickstart documentation guides you through making requests to the service.

Another aspect to take into account is the overall application performance. With multi-modal and multi-models applications, we consider performance to mean that the system performs as you and your users expect, including not generating harmful outputs. It's important to assess the performance of your overall application using generation quality and risk and safety metrics.

You can evaluate your AI application in your development environment using the prompt flow SDK. Given either a test dataset or a target, your generative AI application generations are quantitatively measured with built-in evaluators or custom evaluators of your choice. To get started with the prompt flow sdk to evaluate your system, you can follow the quickstart guide. Once you execute an evaluation run, you can visualize the results in Azure AI Studio.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

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

co_op_translator-0.2.1.tar.gz (15.6 MB view details)

Uploaded Source

Built Distribution

co_op_translator-0.2.1-py3-none-any.whl (15.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: co_op_translator-0.2.1.tar.gz
  • Upload date:
  • Size: 15.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for co_op_translator-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2b322359ee3ac5f56cd897992442da1f2a3e9bb11d88b8ea4f05c0c5e4c3f60b
MD5 a842c047ff9267053c7c19a06f152ddf
BLAKE2b-256 25ce3aa90d02473f445032a908ef80a396bb2cf5583dbf70c03a8e55a225b341

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for co_op_translator-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6a9e78889add6e945411e8289779a7a1979fcb33654e94f410793401dfc73d9
MD5 311b1df829c4d7d040c5e968a6044ada
BLAKE2b-256 a8dcc3fbef58da7263ba9e113d312304f23cbec73485586e3a4f37afc06d433b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page