GSOC 2015 Documentation

  1. Realtime Translation using Google Translate
  2. Realtime Translation using Apertium
  3. Web application to compare statistics of Stock Price, TV Mentions and Twitter

All the technical details are commented in the codes and the documentation is available in the Readme's of their directories. The variables, classes and other components of the code are named properly in Camel Case for easier understanding of the code.

Repositories:

Google Translate and Apertium Realtime Translation

The instruction to use the codes directly are given in the Readme of the
repositories.
A sample of translator from English to Spanish is available at
http://gsocdev.ccextractor.org/~nurendra/translated/test2/tail.php

Web Application for comparing Statistics

The application is presently hosted at https://95.211.109.210/statsChart/default/index
It has been built on Web2py framework.

  1. Make a MySQL database called “statschart” and run the three scripts given in https://github.com/Akirato/statsChart-backend
  2. Clone https://github.com/Akirato/statsChart into web2py/applications/
  3. Go to web2py/application/statsChart/models/db.py and connect your databases.
  4. Run the web2py server.
  5. The application should be hosted at <host-server>/statsChart/default/index

Deployment on a new server:

  1. Make a MySQL database on the server called “statschart” and run the three scripts given in https://github.com/Akirato/statsChart-backend
  2. Install and deploy web2py on a new server.
  3. Several Deployment Recipes for common servers are given at http://web2py.com/books/default/chapter/29/13/deployment-recipes
  4. After this is done, a web2py/ directory will be made in the server.
  5. Clone https://github.com/Akirato/statsChart into web2py/applications/
  6. Go to web2py/application/statsChart/models/db.py and connect your databases.
  7. Run the web2py server.
  8. The application should be hosted at <host-server>/statsChart/default/index

Google Translate and Apertium Realtime Translation

Repositories of both the translators have methodAnalysis/analyse.py file. Execute this file if the code is working properly. Also English→Spanish realtime translation is available at
http://gsocdev.ccextractor.org/~nurendra/translated/test2/tail.php

Web Application for comparing Statistics

The web application is hosted on https://95.211.109.210/statsChart/default/index
To look at the entire code, go to https://95.211.109.210/admin/default/index Give the password: “akirato123” and select “statsChart” to check the entire code.

The subtitles generated by CCExtractor can now be translated and be made available to a larger audience due to the realtime translation tool.
The tool uses Google Translate and Apertium to provide online and offline translation respectively.
The Statistics website collects data from Twitter using Twitter API, from TV advertisements
using CCExtractor and shows it effects on the Stock Price which are updated using Google
Finance. This will be very useful for opinion collection and looking at the effects of
advertisements on Social Media.