>>> import msmt
>>> token = msmt.get_access_token(MY_CLIENT_ID, MY_CLIENT_SECRET)
>>> msmt.translate(token, 'これはペンです', 'en', 'ja')
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">This is a pen</string>The API returns XML, so a final processing step for a real program would be to use something like lxml to parse out the translation result.
so we could get just the translated result out of the XML object returned by the API.
In the case of the example above, this is just the classic1 phrase:
This is a pen
I am Alex Mathew, currently doing the 3rd year of my B.Tech course in Computer Science & Engineering, from SASTRA University, Thanjavur, India.
Regarding apis that you intend to use for translation , google translation api has been made a paid api so using it is out of question. Also with bing translation api, we get a free trail subscription using which we could only convert one million words per month. Considering the use of this application , I think this too wouldn't be effective but still it could be considered as one of the alternatives.
As far as the platform issues are concerned , I think using python would solve it because in general(except few specific commands) the same python code could be used in both linux and windows.
it has option for user to select the source and destination language using a pointer /check boxhi i would like to propose an interface keeping thingsthis interface has a option to import .csv file
i have added the new cs import file option and options for selections of various api's like bing ,yahoo and google
Once the user provides the CSV / excel file, the script would translate the strings in the first column using a REST API (google / bing translate APIs).
Is it possible to take one or two weeks off for exams? I dont want to be disqualified at the start.
- Do you have other commitments that we should know about? If so, please suggest a way to compensate if it will take much time away from Summer of Code.
mentors i would like to add a proposal for adding a text to speech api that will be helping users to learn to speak the translated words too . it would also add to a noble act as lot of people need a tool specially students who want to learn new language this will require to deal with speech apis from google and and other engines . so i feel i can implement this feature so required your suggestion about this
this is a feature that will be influencing lot a of people using this tool ;)