Backend Repository for "idParser", Web Based Indonesian Sentence Syntactic Parsing using CYK Algorithm with Table Filling Method.
Frontend: idparser-frontend
API Endpoint:
POST: /parser
Request:
{
"string": ""
}
Response:
{
"result": "",
"graph": "",
"table": "",
}
idParser-Backend is created using:
- Python - Python as the main programming language.
- Flask - Flask is a web framework for Python, based on the Werkzeug toolkit.
- Vercel - Vercel is a cloud platform that we use to deploy our apps.
idparser-backend
βββ .github
βββ docs
βββ handlers
βββ modules
βββ tests
βββ .gitignore
βββ LICENSE
βββ README.md
βββ app.py
βββ requirements.txt
βββ set_of_production.txt
βββ vercel.json
- .github is a folder that used to place Github related stuff, like CI pipeline.
- docs contain documentation of this app.
- handlers contain handler to handling HTTP request methods.
- modules contain the main modules of the app.
- tests contain unit test of the app.
- .gitignore is a file to exclude some folders like venv.
- LICENSE is a file that contains the license used in this app.
- README.md is the file you are reading now.
- app.py is the main file of this app.
- requirements.txt is a file that contains a list of dependencies used in this app.
- set_of_production.txt is a file that contains set of production of the grammar.
- vercel.json is a file that contains configuration and override the default behavior of Vercel.
- Python 3.10 or later
- Clone the repository:
git clone https://github.com/putuwaw/idparser-backend.git
- Create a virtual environment:
python -m venv venv
- Activate virtual environment:
source venv/Scripts/activate
- Install dependencies:
pip install -r requirements.txt
- Run app:
python app.py
- Run test:
pytest
Putu Widyantara |
Kevin Moses |
Antonius Ata |
Yoga Laksana |