putuwaw / idparser-backend

Backend for Indonesian Sentence Syntactic Parsing using CYK Algorithm

Home Page:https://idparser-backend.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

idParser-Backend

Logo IdParser

Python Flask Vercel Forks Contributors Stars

Backend Repository for "idParser", Web Based Indonesian Sentence Syntactic Parsing using CYK Algorithm with Table Filling Method.

Frontend: idparser-frontend

FeaturesπŸ’‘

API Endpoint:

POST: /parser

Request:

{
  "string": ""
}

Response:

{
  "result": "",
  "graph": "",
  "table": "",
}

Technology πŸ‘¨β€πŸ’»

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.

Structure πŸ“‚

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.

Requirements πŸ“¦

  • Python 3.10 or later

Installation πŸ› οΈ

  • 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

Contributors ✨



Putu Widyantara

Kevin Moses

Antonius Ata

Yoga Laksana

About

Backend for Indonesian Sentence Syntactic Parsing using CYK Algorithm

https://idparser-backend.vercel.app

License:MIT License


Languages

Language:Python 100.0%