Code Monkey home page Code Monkey logo

qepdiff2text's Introduction

QEPDiff2Text

QEPDiff2Text generates natural language description of two QEPs and differences between them. In its core, QEPDiff2Text generates the QEP trees of the two queries using a PostgreSQL server and uses APTED algorithm[1][2] to find the tree edit distance and a homeomorphism between the two QEP trees. The program also includes a Graphical User Interface that allows users to input and change a SQL, commit its changes overtime and generate description of difference of two versions of the query.

Setup

Prerequisites

A PostgreSQL database server should be accessible
This project requires Python3. To verify the correct Python version, run

python -V

(optional) It will be great if you have a virtual environment

python -m venv ./venv
source ./venv/bin/activate

Installation

  1. clone the project and enter the project directory
git clone https://github.com/Clark0/QEPDiff2Text.git
cd QEPDiff2Text
  1. install Python packages
pip install -r requirements.txt

Run

Under the project root directory, run

python main.py

to start the main program.

References

  1. M. Pawlik and N. Augsten, “Efficient Computation of the Tree Edit Distance,” ACM Transactions on Database Systems, vol. 40, no. 1. pp. 1–40, 2015.
  2. M. Pawlik and N. Augsten, “Tree edit distance: Robust and memory-efficient,” Information Systems, vol. 56. pp. 157–173, 2016.

qepdiff2text's People

Contributors

bubibubing avatar clark0 avatar leoniescape avatar qiuhaohao avatar

Watchers

 avatar  avatar

qepdiff2text's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.