Text Translator: bulk translation in 100 languages avatar

Text Translator: bulk translation in 100 languages

Pricing

from $20.00 / 1,000 1,000 characters translateds

Go to Apify Store
Text Translator: bulk translation in 100 languages

Text Translator: bulk translation in 100 languages

Translates lists of text or plain text files between 100 languages, into several target languages at once, with language detection. Meta's M2M100 model runs inside the actor; no outside translation service is called.

Pricing

from $20.00 / 1,000 1,000 characters translateds

Rating

0.0

(0)

Developer

Ed Rayyis

Ed Rayyis

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 days ago

Last modified

Categories

Features

Limited permissions

Share

Give it a list of texts, or links to plain text files, pick one or more target languages, and it returns every text translated into each of them. The source language can be detected for each text.

Translation runs inside the actor with Meta's M2M100 models, released under the MIT License [1]. No outside translation service is called and no API key is needed.

Languages

The models translate directly between any two of 100 languages [1], including English, Spanish, French, German, Italian, Portuguese, Dutch, Polish, Russian, Ukrainian, Turkish, Arabic, Hebrew, Hindi, Bengali, Chinese, Japanese, Korean, Vietnamese, Thai and Indonesian. The full list is in the language pickers.

Input

  • Texts: each one up to 100,000 characters. Line breaks are kept.
  • Plain text file URLs: .txt links up to 5 MB, each translated as one text
  • Source language: a language, or detect it for each text from its first 2,000 characters
  • Target languages: one or more
  • Model: large (the m2m100_1.2B model, default) or standard (the m2m100_418M model, faster and less accurate)
  • Search: better (beam search, default) or faster (greedy)

Output

Dataset: one item per text and target language with index, source (input or the file link), ok, sourceLanguage, detectedLanguage, targetLanguage, model, characters, sourceText, translatedText and charactersCharged. When the target is the source language, the text comes back unchanged with a note. A text that cannot be translated gets ok: false and an error, and the run carries on.

Tested

  • English, French and Japanese sentences into Spanish, German and English with both models, and into Japanese with the large model
  • English into French, German, Spanish, Japanese, Chinese and Arabic with both models
  • Language detection on English, Spanish, German, Japanese, Chinese and Arabic sentences
  • An RFC text file (3,207 characters) into Spanish, and a two paragraph story file
  • Greedy search with a set source language
  • Errors: an empty text, a web page link
  • The maximum charge: texts it does not cover are left unprocessed

The translations are machine made. In testing, the large model read better than the standard one, and both made mistakes: one Japanese translation reversed cause and effect. Review translations before you publish them.

Speed

On 4 GB of memory, the large model translated the 3,207 character RFC file into Spanish in a 50 second run, model loading included.

Pricing

Pay per event: one event per started 1,000 characters of each text, for each target language. A 1,500 character text into three languages is six events. Rows where the target is the source language are not charged, and neither are texts that fail. A text is left unprocessed, with an error saying so, when the maximum charge you set does not cover it. Once the maximum charge is reached, the run stops and writes no rows for the texts after it.

Scope and conduct

Only the texts and links you supply are read.

Support

Questions and problems: the Issues tab on this page.

References

  1. facebook/m2m100_1.2B · Hugging Face | Model card | huggingface.co. https://huggingface.co/facebook/m2m100_1.2B