GithubHelp home page GithubHelp logo

python-azure-ai-translate's Introduction

python-azure-ai-translate

2024-06-17-1

Translate text using azure ai translate in python

You can use azure 12 months for free, then you have to pay $1 for 1000 images.
You must move to pay as you go (basic supscription - $0) after first month.
Be careful not to go over free amount of units. especially after 1st month
More info here: https://github.com/dbojan/python-azure-ocr/

https://learn.microsoft.com/en-us/azure/ai-services/translator/service-limits
Each translate request is limited to 50,000 characters, across all the target languages. For example, sending a translate request of 3,000 characters to translate to three different languages results in a request size of 3,000 ร— 3 = 9,000 characters and meets the request limit. You're charged per character, not by the number of requests, therefore, we recommend that you send shorter requests.
2 million characters S0 tier (monthly)

create azure resource "Translator"

Create free azure account
go to https://portal.azure.com/#home
click on Translators on the left
click on + to create new resource in "Translators"
    subscription: something like Azure subscription
    resource group: create new, something like: translator-test
    region: I selected North EU
    name: enter what ever you want
    pricing: select free f0 (S0 tier, 2 million characters per month)

python

According to https://learn.microsoft.com/en-us/azure/ai-services/translator/quickstart-text-sdk?pivots=programming-language-python:
pip install azure-ai-translation-text==1.0.0b1

download zip, start bat file. It will translate file 1.txt in the same dir. You can edit .py file in notepad++

python-azure-ai-translate's People

Contributors

dbojan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.