code prettify

Monday, 22 August 2016

Apertium: Free open source language translator

Came across a very cool "free" and "open source" tool to translate text from one language to another.




It's "Apertium" => "A free/open-source machine translation platform".

https://www.apertium.org

Excerpt from the site:
Apertium is a free/open-source machine translation platform, initially aimed at related-language pairs but expanded to deal with more divergent language pairs (such as English-Catalan). The platform provides a language-independent machine translation engine tools to manage the linguistic data necessary to build a machine translation system for a given language pair and linguistic data for a growing number of language pairs.
You can try the UI at https://www.apertium.org to translate sample text from one language to another.



Wiki and documentation related to it can be found at http://wiki.apertium.org/wiki/Main_Page

It also has a variety of tools for users / translators and developers: http://wiki.apertium.org/wiki/Tools

Apertium tools for users / translators

Apertium tools for developers


The installation steps are very easy. Just follow the one suitable for your OS at: http://wiki.apertium.org/wiki/Installation

Here is a video explaining the download, install process and command line usage of it for Ubuntu: https://www.youtube.com/watch?v=vy7rWy2u_m0

Below are the steps to install and use in a fresh new Ubuntu system:

1. Download stable-release sh script and run it to add Apertium package key to Ubuntu and to update the packages list.

$ wget https://apertium.projectjj.com/apt/install-release.sh -O - | sudo bash

2. To install all the core Apertium tools run:

$ sudo apt-get install apertium-all-dev

3. Download a language pair for your conversion use. You can search for your language pair here at http://wiki.apertium.org/wiki/List_of_language_pairs. For this example case, we will be downloading spanish-english language pair for conversion:

"apertium-en-es"  => English <-> Spanish

$ sudo apt-get install apertium-en-es

4. Now finally time to test it:

The command syntax is apertium <language-of-given-text>-<language-to-be-translated>

In our case, we will be translating from Spanish to English:

$ echo 'gracias' | apertium es-en

o/p: thank you

Now we will try to convert this spanish sentence "Tengo Un Mes Estudiando Español" which in english means "I've been learning Spanish for 1 month".

$ echo 'Tengo Un Mes Estudiando Español' | apertium es-en

o/p: Have A Month Studying Spanish

Same translation from google translate results in:

I have a month studying Spanish

Seems like Apertium translation result is quite similar to google translate result. This is great, coming from a free and open source tool. Hope you find use for it in your applications :)

22 comments:

  1. Nevertheless, you can avail the best services at Shan translation. Spanish subtitling services need the expert to know the target language, its flow and how to set the translated Spanish text into the desired video precisely. You must not miss the flow and timing of the video and its corresponding text. For more details :http://shantranslation.de/subtitling/

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Free Language Translator includes a few personalization choices, like the chance to decide on a custom made text font and choose another keyboard layout when translating to languages using various keyboards. Visit here for more interesting information Contact - Anthony Teixeira - Professional French Translator.

    ReplyDelete
  4. Your post is very interested and helpful for the business. Personally, I am using to Mars Translation for the best services related to translation.they are providing the best tips for translation on a daily bases. Also, your article is amazing with good tips.

    Thanks a lot!

    ReplyDelete
  5. Thanks for such a wonderful post. Keep sharing it with others too.

    ReplyDelete
  6. Nice blog post. Thanks for sharing such helpful information. Keep sharing and Posting in future also.
    Translation Company in Delhi
    Translation Services in Delhi
    Voice Over Artist in Delhi
    Indian Languages Translator

    ReplyDelete
  7. This was really an informative post. Thank you for sharing your expertise with us.
    We also have a blog related to the same field of information. Do have a look.best translation services in india

    ReplyDelete
  8. This was really an informative post. Thank you for sharing your expertise with us.
    We also have a blog related to the same field of information.
    Do have a look Software localization services

    ReplyDelete
  9. This was really an informative post. Thank you for sharing your expertise with us.
    We also have a blog related to the same field of information.
    Do have a look Voice over localization

    ReplyDelete
  10. Professional translation company Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome!

    ReplyDelete
  11. 論文翻訳サービス You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us to read this...

    ReplyDelete