Sitting around on a Sunday night, decided to finally take a little dive on something that’s had my eye for a while, the Google Prediction API.
I followed the hello world tutorial that Google provides. I won’t cut-and-paste all the steps, since the tutorial is well-written, but here are some notes from the process.
gsutil - pretty easy; instructions here.gsutil cp ./language_id.txt gs://play-prediction/prediction_models/languages.googlekey.oauth-train.sh, oauth-check-training.sh, and oauth-predict.sh to my local project folder, and chmod 755 on the to make them executable../oauth-train.sh play-prediction/prediction_models/languages command../oauth-check-training.sh play-prediction/prediction_models/languages yielded the expected result, training accuracy was 0.95../oauth-predict.sh play-prediction/prediction_models/languages "\"Sitting around on a Sunday night, decided to finally take a little dive on something that’s had my eye for a while, the Google Prediction API.\"" was interpreted as English correctly../oauth-predict.sh play-prediction/prediction_models/languages "\"El sol se levantará mañana y quién sabe lo que traerá la marea?\"" was interpreted as Spanish correctly../oauth-predict.sh play-prediction/prediction_models/languages "\"La gloire est éphémère, mais l'obscurité est éternelle.\"" was interpreted as French correctly.I noticed the engine didn’t perform as well on short phrases, to be expected.
Very cool system, took me about an hour to get through the tutorial.
Mission accomplished, Google Prediction API is much less abstract in my mind now.