Apply Google Translate API for University Research Program

Google Translate API is now available commercially (usage is chargeable depending on how many characters of input). Fortunately if you’re a researcher (or university students doing thesis/dissertation) you may apply for University Research Program – apply here.

Before applying for the University Research Program, crate a project in the console.developers.google.com/project . Provide the complete billing first to the new project you created.

new-API-project

Then in the APIs & auth menu, turn the Translate API on.

new-API-project-translate-API-on

However, University Research Program, in the you’re to abide these restrictions;

  • The research program is for research purposes only. Commercial use is strictly forbidden.
  • Participants may submit no more than 100,000 characters for translation each day. If your project requires more daily throughput, let us know in your proposal and we'll do our best to accommodate you.
  • Publications presenting research that was done using resources provided by this program must include attribution to Google for providing those resources.
  • The program may be used only by registered researchers and their teams, and access may not be shared with others.

Wait for few months for the approval process and you will get the approval email.

Google-Translate-API-University-Research-Program

Upon the approval, you and your team will get 100,000 of characters for translation per day for FREE.

To embed the Translate API to your web application, you need to download the API code segment. The code and documentation is here https://developers.google.com/translate/v2/getting_started.

I did some customization for my web page. This is the workaround, I provide only the code segment (not completed). My server backend is in PHP.

<?php
//the function receive input text in Malay
function googletranslateAPI($text){
$apiKey = 'this-is-ur-Google-Translate-API-KEY';
//to get the Google-Translate-API-KEY, go to your Translate API project console
//source is Malay(ms) and target is English (en)

$url = 'https://www.googleapis.com/language/translate/v2?key=' . $apiKey . '&q=' . rawurlencode($text) . '&source=ms&target=en';

$handle = curl_init($url);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($handle);
$responseDecoded = json_decode($response, true);
$responseCode = curl_getinfo($handle, CURLINFO_HTTP_CODE); //Here we fetch the HTTP response code
curl_close($handle);

if($responseCode != 200) {
$output= 'Fetching translation failed! Server response code:' . $responseCode . '<br>';
$output=$output. 'Error description: ' . $responseDecoded['error']['errors'][0]['message'];
}

else {
//echo 'Source: ' . $text . '<br>';
$output= $responseDecoded['data']['translations'][0]['translatedText'];
}
return $output;//this function will return the output translation which is in English

}

?>

By using the Google Translate Program, I managed to do the translation of Malay Proverb with the help of Google Translate.

clip_image002

Samsung Note 2 Official KitKat Update (4.4.2)

The Samsung Note 2 has been my primary Android smartphone device since the pass 18 months. And the official KitKat 4.4.2 just arrived today in Malaysia (16 May 2014).

10th Asia Information Retrieval Society Conference 2014

Call for Papers AIRS 2014
The Asia Information Retrieval Society Conference 2014 will be held in Kuching, Sarawak, MALAYSIA on3rd – 5th December 2014. The conference is hosted by the Malaysia Society of Information Retrieval and Knowledge Management (PECAMP). The secretariat would like to invite researchers in the field of Information Retrieval to present papers in this conference. AIRS Conference is an annual event organized together with the Asia Information Retrieval Society since 2004. The conference discusses issues focusing on Information Retrieval.

The proceeding of AIRS2014 is confirmed to be published as Springer Verlag Lecture Notes in Computer Science (LNCS) series .
Tracks

  1. IR Applications    
  2. IR Evaluation, User Study and Interactive IR
  3. IR Models and Theories
  4. Machine Learning and Data Mining for IR    
  5. Multimedia IR
  6. NLP for IR
  7. Web IR, Scalability and IR in Social Media
Important Dates
  • Submission Due: 23rd June 2014
  • Send in your complete article to http://edas.info/N17183
    Notification of acceptance: 10th July 2014
    Camera-ready due: 1st August 2014
    Registration: 15th October 2014
    Conference dates: 3-5 December 2014

More info: http://airs2014.pecamp.org/
PDF Brochure is here: http://bit.ly/airs2014-brochure

Regards
Zainab Abu Bakar (Prof, Dr)
Conference Co-Chair
airs2014.pecamp@gmail.com
***We would highly appreciate if you could share / forward this CFP to your colleagues .

Filter setting in new AdMob panel

The new AdMob interface was launched last week (I was invited on early May 2014). The transition was smooth however from my experience I lost all my account balance in the old interface.

One thing I do not like with the new apps is, it do not want to support PayPal payment. (Update – later I found out that the new AdMob facility provide direct wired-transfer to you favorite local banks. Just provide your account number and bank SWIFT-BIC and wait till your balance achieve the threshold value. This is normally a three day compared to two weeks PayPal transfer.You can change this in the Account > Payments > Payment SettingsI have not figured out how to channel my commission payment to my local bank account.

The thing I’d like to elaborate is the ads filtering panel. After you have logged-in to the new system (at https://apps.admob.com/), find the Account panel on the top-right of the page. Inside the Account panel, click on the Legacy AdMob data menu . Then choose the Review and Set ad filters (refer to screenshot below).

ads filter for new admob dashboard

You can block competitors’ URL.

block competitors url in new admob dashboard

Or block ads by category. However this is not a good approach, as you block one general categories, all the sub-categories will also be blocked.

block general categories in new admob dashboard

Hopefully the will have ads filtering based on keyword very soon.

Search Operation on Android online Database JSON

For the database setup, please refer to http://blog.kerul.net/2014/04/insert-new-record-on-android-online.html

INTRODUCTION

This tutorial will demonstrate how to retrieve an records form an online database. We are using the JSON data format to transfer the database content to the Android client.

search-UI display-result list

STEP 1: JSON DATA FORMAT GENERATOR (server-side)

Our Popular Posts

WorldConferences.net