hyukkyukang / table-to-text

Table-to-Text Summarization Model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table-to-text

This is a Python program that creates a summarizing text from a table.

Setting environment

  1. Run docker container using docker compose
docker compose up -d
  1. Download totto dataset and evaluation scripts
sh script/download_totto.sh
pip install -r evaluation/language_repo/language/totto/eval_requirements.txt
cd evaluation/language_repo/ && python setup.py install

Training

Run python srcipts in src directory.

python src/train.py

Inference

To run a Table-to-text inference, you must train a model first. Run python srcipts in src directory. Note that the guiding text is optional.

python src/infer.py --input [string of table] --saved_path [location of saved model] --guidance [guiding text]

Evaluation

For the evaluation, we conducted a user study following the Provenance for natural language queries (VLDB'17) paper. The pdf in the repository contains the questions (query, result table, and natural language query) for the conducted user study.

About

Table-to-Text Summarization Model

License:GNU General Public License v3.0


Languages

Language:Python 96.5%Language:Shell 1.9%Language:Dockerfile 1.5%