Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Thursday, September 27, 2007

Building auto-translator based on google translate API (3)

Finished the ETranslator plugin

Since machine translation is getting more mature year over year, it can be used for localization vendors to cut the translation cost.
Even more, if we can mash-up related technologies together, we can create

Interpreter Robot

  1. Speech-to-Text, to input English
  2. machine translation, to translate to Franch
  3. Text-to-Speech, to speak out in Franch

Saturday, August 11, 2007

Building auto-translator based on google translate API (2)

Got the draft version of the eclipse resource auto-translator works.
For a input resource file in English below:

action1=File
action2=Open
action3=Save
action4=Johnson


The output resource file in Simplified Chinese looks really stupid.



Need to find a way to let google translate to use IT dictionary!

[Updated 08/12]
Here are more info after digging into this problem.
From Google Translate FAQ:

"
Most state-of-the-art, commercial machine-translation systems in use today have been developed using a rules-based approach, and require a lot of work by linguists to define vocabularies and grammars.

Our system takes a different approach: we feed the computer billions of words of text, both monolingual text in the target language, and aligned text consisting of examples of human translations between the languages. We then apply statistical learning techniques to build a translation model. We've achieved very good results in research evaluations"

However, it can't be used to translate single word. since the algorithm needs context words to match for result.

In our application, for example, menu labels are single word. such as "File", "Open"...etc.
For workaround, I need to use an online dictionary for single word translation.
One good candidate is worldlingo
It is handy. allow you to select from list of dictionary, including computer/IT.

Wednesday, August 8, 2007

Building auto-translator based on google translate API (1)

I am writing an auto-translator plug-in. which will do the i18n for eclipse plugins and application automatically. After evaluate several online translating engine, i think google translate is more accurate. Although google does no provide an official API for their translate yet.

Here is the translation mode definition class. It lists all translation directions supported by google so far.


public final class TranslateMode {
public static final TranslateMode ARABIC2ENGLISH= new TranslateMode("ar|en");
public static final TranslateMode CHINESE2ENGLISH = new TranslateMode("zh|en");
public static final TranslateMode CHINESECN2CHINESETW = new TranslateMode("zh-CN|zh-TW");
public static final TranslateMode CHINESETW2CHINESECN = new TranslateMode("zh-TW|zh-CN");
public static final TranslateMode ENGLISH2ARABIC = new TranslateMode("en|ar");
public static final TranslateMode ENGLISH2CHINESECN = new TranslateMode("en|zh-CN");
public static final TranslateMode ENGLISH2CHINESETW = new TranslateMode("en|zh-TW");
public static final TranslateMode ENGLSISH2FRENCH = new TranslateMode("en|fr");
public static final TranslateMode ENGLISH2GERMAN= new TranslateMode("en|de");
public static final TranslateMode ENGLISH2ITALIAN= new TranslateMode("en|it");
public static final TranslateMode ENGLISH2JAPANESE= new TranslateMode("en|ja");
public static final TranslateMode ENGLISH2KOREAN= new TranslateMode("en|ko");
public static final TranslateMode ENGLISH2PORTUGUESE= new TranslateMode("en|pt");
public static final TranslateMode ENGLISH2RUSSIAN = new TranslateMode("en|ru");
public static final TranslateMode ENGLISH2SPANISH = new TranslateMode("en|es");
public static final TranslateMode FRANCH2ENGLISH = new TranslateMode("fr|en");
public static final TranslateMode FRENCH2GERMAN = new TranslateMode("fr|de");
public static final TranslateMode GERMAN2ENGLISH = new TranslateMode("de|en");
public static final TranslateMode GERMAN2FRANCH = new TranslateMode("de|fr");
public static final TranslateMode ITALIAN2ENGLISH = new TranslateMode("it|en");
public static final TranslateMode JAPANESE2ENGLISH= new TranslateMode("ja|en");
public static final TranslateMode KOREAN2ENGLISH = new TranslateMode("ko|en");
public static final TranslateMode PORTUGUESE2ENGLISH = new TranslateMode("pt|en");
public static final TranslateMode RUSSIAN2ENGLISH = new TranslateMode("ru|en");
public static final TranslateMode SPANISH2ENGLISH = new TranslateMode("es|en");

public String toString() {
return langpair;
}

private final String langpair;

private TranslateMode(String mode) {
langpair = mode;
}
}


Tuesday, June 26, 2007

The 'E' Day

Tomorrow will be the 'E' Day -- Eclipse Europa Release.

All the hard work for the past months will pay off.







Thursday, May 24, 2007

Post some eclipse interview questions

Since i have worked for eclipse during the past three years. i did quite a few interviews.

Each time i need to prepare some questions in advance.
However there isn't any eclipse interview Q&A on internet so far.
So i decided to post some generic questions to share within community.

I will add more questions such as emf, pattern, views... when have time. (I am crazy busy recently for the Eclipse Europa release.)


http://www.eobjectsoft.com/product/EclipseInterviewQuestions.htm

Tuesday, May 8, 2007

The swt event logger/debugger (1)

Since Eclipse GUI is also event driven, it is good to be able to monitor the SWT event at runtime. It will be even better if we can setup event logger filter by widget.

I still remember that M$ DevStudio do provide tools to inspecting windows and tracing events. That is really useful when deal with some tough problems. I am thinking about building a similar plugin for eclipse platform , which can find the widget using mouse and trace all events (or any type of events) on that widget.

Based on that plug-in, we can build event breakpoint feature for Eclipse platform. In the new Eclipse 3.3, there is a new class loading breakpoint feature, which will pause the debugging session when loading a particular class into Eclipse jvm. The event breakpoint is similar to the above. it will break when user selected event occurs on particular widget.
If you are doing a lot of bug fixing on other code not wrote by yourself, you will also want this feature really hard!

Wednesday, April 25, 2007

Google Gadget Eclipse plugin (3)


Here are some updates about the Google Gadget Eclipse plugin.
It has been uploaded to the website for about one week. We have 200 daily download so far. I really feel that "The world is flat", since the users are coming from around the world.
I even see a user from South Africa. Amazing.

Wednesday, April 18, 2007

Google Gadget Eclipse plugin (2)

Uploaded the Google Gadget plugin to
my Website

Also listed on the
eclipseplugincentral

There are 20+ downloads so far. More than half of those visitors are from eclipseplugincentral.

Sunday, April 8, 2007

Google Gadget Eclipse plugin (1)

Just wrote a plugin to integrate Google gadgets into Eclipse platform.
Reason:
I am working on eclipse for the past three years. At the same time, i am enjoy google gadgets very much.
Since both of them are based on open standard and free to use, why not combine them together.

Here it comes Google Gadgets plugin for Eclipse, which is integrated with Google Map, Google Talk, Google Calendar out of box. It can be extend to support any Google Gadgets
you want by just modify the plugin.xml file.

Here is the screenshot




I will upload the plugin and give more detail information/instruction later on.