Simple Sundanese to Bahasa Indonesia translator using Pattern Matching (only implemented by per-word matching) . Back-end created with Flask and Python, and front-end using vanilla HTML and CSS that rendered with jinja2.
- Python 3, here I'm using python 3.7
- Recommended using Windows, as I'm using it. But, you can try in linux, such as Ubuntu Linux
- Latest Web Browser, recommended using Google Chrome or Mozilla Firefox as I've tested this web apps work on them.
- Virtualenv (a python lib, for creating virtual/special environment to a specific project)
- Additional python lib/framework: flask, python-dotenv (of course all of it installed in venv)
You can install virtualenv by executing install_venv.bat, and when inside virtuelenv, you can executing install_library.bat to install additional python library needed for this web application.
-
Make sure you've install all requirements above. If you don't, please follow step that I've mentioned above (for some requirements) before you proceed to the next step.
-
open shell (cmd/powershell) and change directory to env/Script.
-
Execute
activate
to run virtualenv.
-
Execute
flask run
to run the server.
For simplicity you can executing start_env.bat instead of step 2-3 to running virtualenv for simplicity.
-
After you run the server by flask run, you can navigate to
http://127.0.0.1:5000/
or
localhost:5000/
with your web browser to run this web apps.
-
Choose the mode (indo to sunda / sunda to indo), the algorithm that should be used, input the text that want to be translated, and then click Translate button.
-
The translation must be appeared after awhile.
-
Enjoy.
Sunda - Indonesia
Sunda : nami abdi Riyugan
Indonesia : nama saya Riyugan
Sunda - Indonesia
Sunda : abdi teh sanes jalma Bandung
Indonesia : saya bukan orang Bandung
Sunda - Indonesia
Sunda : anjeun sumping ti mana?
Indonesia : kamu tiba dari mana?
Indonesia - Sunda
Indonesia : nama saya Riyugan
Sunda : nami abdi Riyugan
Indonesia - Sunda
Indonesia : nama adik kamu siapa?
Sunda : nami rai anjeun teh saha?
Indonesia - Sunda
Indonesia : saya tidak bisa bahasa Sunda
Sunda : abdi henteu tiasa bahasa Sunda
- The Indentation in textarea (input/output text section) after translation would give tab before the translation, but the translation result should be correct.
You can access how to use this program in this youtube link.
Naufal Prima Yoriko, 13518146, Teknik Infomatika ITB '18