User:Arghya1998/proposal
Contents
- 1 GSoC Proposal : Python API/library for Apertium
- 2 Basic Details
- 3 Why am I interested in Machine Translation?
- 4 Why is it that I am interested in Apertium?
- 5 Which of the published tasks am I interested in?
- 6 Why should Google and Apertium sponsor the project of Python API for Apertium?
- 7 How and who will benefit from this project?
- 8 Detailed project plan and workflow
- 9 Coding Challenge
- 10 About me: Education and Experience
- 11 Non-Summer Of Code Plans
GSoC Proposal : Python API/library for Apertium [edit]
Basic Details[edit]
Name | Arghya Bhattacharya |
Email Address | arghya.b@research.iit.ac.in |
Alternate Email Address | arghyatiger@gmail.com |
IRC Nick | arghya[m] |
Mobile | +91 9831325363 |
TimeZone | UTC + 5:30 |
Link to Gihub | https://github.com/arghyatiger |
Link to Gitlab | https://gitlab.com/arghyatiger |
Why am I interested in Machine Translation?[edit]
The broader perspective:
Being from a diverse country like India, with over 22 officially registered languages and over 1500 mother tongue languages (150 of them are sizeable), I’ve always been curious as to how languages serve as the basic entity of communication. During my childhood, I have lived in various places in India and hence I have had the chance to closely interact with people of different lingual backgrounds and in the process I ended up learning quite a few languages including Hindi, Bengali, English, Tamil, Oriya. The language diversity in my country is fascinating, but with it comes a lot of problems in communication and I believe that efficient machine translation can aid a lot of these problems and breaking the “language barrier” across not just the country and the globe and connect people better.
Academic Interests:
I am currently pursuing my B.Tech in Computer Science + M.S by Research in Computational Linguistics Dual Degree program at IIIT-Hyderabad, India. A good portion of our academic focus is on Machine Translation and I find it a really interesting area to work on. So working with apertium will help me nurture my Computational Linguistics skills as well as give me a chance to give back to the community with some solid contribution.
Why is it that I am interested in Apertium?[edit]
Being a student, with primary academic focus on Computational Linguistics, Apertium happens to be one of the important tools that I use for my university assignments like building transducers for small restricted grammar and building morphological generators.The Apertium projects provide a nice blend of linguistic and coding tasks and that makes the projects interesting to me. Belonging to the intersect of people who understand both linguistics and computers these projects really are the most relvant to my domain. Also as a part of the long-term goal of contributing to the community, I think contributions to Apertium would make a significant impact on the Computational Linguistics community all around the globe and that further motivates me to work for Apertium.
Which of the published tasks am I interested in?[edit]
To me, all the published tasks seemed to be interesting and hence it was difficult to choose only one. But I have been able to narrow down to the project which I like the most. It is called Python API/library for Apertium
Why should Google and Apertium sponsor the project of Python API for Apertium?[edit]
The Apertium code base is primarily written in C++. While C++ has a fairly high performance, supports low-level systems programming and is fairly available everywhere and reasonably well standardized, however, there are a few shortcomings to it as well. Some of them include the non-interactiveness of C++, the compile/debug/nap cycle and the endless difficulties in extending and modifying the modules. Also, Once the development of a module is done with, certain improvements like writing User-Interfaces and systems integration become really cumbersome in C++. Python, on the other hand, has a lot of features that c++ doesn’t have. Python has an interpreted high-level programming environment. And hence a python wrapper can provide flexibility, interactivity to Apertium’s code base. Also a lot of other features like ease of debugging, ease of testing, and rapid prototyping.
How and who will benefit from this project?[edit]
The project would bring a lot of developers at ease. Python is a high-level language with a lot of features that make it easier to grasp for developers. Python will also help increase the scalability of apertium in the future.A lot of people like to use Jupyter notebooks and Python, and a Python module would increase the user community. Hence I believe that if Apertium has a Python API, it would be helpful to a large community of developers, linguists, computational linguistics and all people keen on using the wide range of linguistic tools that we provide.
Detailed project plan and workflow[edit]
1. Detailed Project Goal:
The Goal of the project is to create structured python wrappers for the core modules of apertium, namely:
a.) The modules would be python importable, the pythonic usage would be as follows:
b.) The modules would be nested so as to keep a proper code structure
c.) The internal usage of the functions would be as follows:
d.) Specialized IO functions have to be written for the wrapper as Python may not support a lot of input types, For example
Logical usage of this in python would be:
But this gives a Syntax error as - L isn't a valid string prefix in Python. in python. So we can accept a normal string ( str ) instead and pass the appropriate string along with the prefix to the core function
2. Tool to be used:
For the project, I plan on using SWIG to bind the C++ code. SWIG is a software development tool that simplifies the task of interfacing different languages to C and C++ programs. It is a compiler that takes C declarations and creates the wrappers needed to access those declarations from other languages. Among the other options that I explored for the project are Pyrex, ctypes, SIP, Boost.python.But for projects of huge scale such as this one, SWIG seems to be the most convenient due to a lot of features. These are explained later in the proposal.
3. Timeline :
Goals for the various phases:
PHASE | OBJECTIVE OF PHASE |
---|---|
Community Bonding Period |
|
Phase 1 |
|
Phase 2 |
|
Phase 3 |
|
Week-Wise Goals:
PHASE AND BRIEF DESCRIPTION | DURATION | TASK EXPLANATION | DELIVERABLE OF THE WEEK |
---|---|---|---|
COMMUNITY BONDING PERIOD |
|
|
|
Week ONE : Lttoolbox setup |
|
|
|
WEEK TWO: Variable handling in SWIG for Lttoolbox module |
|
|
|
WEEK THREE: Templating and Object Handling for Lttoolbox module |
|
|
|
WEEK FOUR:Testing and improving cross language polymorphism, Making the module more pythonistic, Exception Handling |
|
|
|
WEEK FIVE: Apertium setup |
|
|
|
WEEK SIX: Variable handling in SWIG for Apertium module |
|
|
|
WEEK SEVEN: Templating and Object Handling for Lttoolbox module |
|
|
|
WEEK EIGHT: Testing and improving cross language polymorphism, Making the module more pythonistic, Exception Handling |
|
|
|
WEEK NINE: Extensive alpha testing of modules built |
|
|
|
WEEK TEN: Finishing Documentation |
|
|
|
WEEK ELEVEN: Beta testing and changes(if any) |
|
|
|
WEEK TWELVE: Deciding on the library structure and making module pip installable |
|
|
|
WEEK THIRTEEN: Final reviews and bug report |
|
|
|
(***)The tasks are similar to the tasks of the referenced week
Coding Challenge[edit]
- Transducer model python importable
- The library has
- Transducers can be built using:
- t.show() returns the transducer in tuple format:
About me: Education and Experience[edit]
I am a sophomore at IIIT-Hyderabad, India, pursuing my Dual-Degree in Computer Science and Computational Linguistics. I’ve worked with C++ and Python closely in a lot of projects and I take keen interest in machine learning as well.I usually love building fun applications. The details of my work experience can be found here.
Non-Summer Of Code Plans[edit]
I have my college vacations during the months of Google Summer of Code, I would be able to devote around 40 man hours a week.I have a vacation plan for a week that lies in between but for the same reason, I have distributed the work accordingly in the timeline. If not selected I plan to start my research on sentiment analysis.