Git Product home page Git Product logo

dualg's Introduction

DualG

This repo contains the example pytorch code for the paper [Enhancing Table Retrieval with Dual Graph Representations].

This paper/code aims to enhance table retrieval with Dual Graph Rrepresentations. We first decouple a table into the row view and column view, then build dual graphs with the consideration of table contexts. Afterward, intra-graph and inter-graph interactions are iteratively performed, and an adaptive fusion strategy is tailor-made for sophisticated table representations. In this way, the input query can match the target tables and achieve the ultimate ranking results more accurately.

See below for an overview of the model architecture:

Architecture

Requirements

  • python3 (tested on 3.7.11)
  • pytorch (tested on 1.11.0)
  • networkx (tested on 2.5)
  • dlg (tested on 0.8.0.post2)

Install requirements:

pip install -r requirements.txt

Preparation

The code requires that you have access to the WikiTables dataset and Webquerytable dataset.

First, download and unzip FastText vectors:

wget https://dl.fbaipublicfiles.com/fasttext/vectors-wiki/wiki.en.zip
unzip wiki.en.zip

Next, install trec_eval tool:

git clone https://github.com/usnistgov/trec_eval.git
cd trec_eval
make

Training

To run cross validation on WikiTables dataset:

python run.py --dataset wikitables

Training DualG on Webquerytable dataset:

python run.py --dataset webquerytable

Model checkpoints and logs will be saved to saved/model_*.pt and saved/results_*/*.log, respectively.

Detailed parameter information used in configs/*.json.

Citation

@inproceedings{liu2023enhancing,
  title={Enhancing Table Retrieval with Dual Graph Representations},
  author={Liu, Tianyun and Zhang, Xinghua and Zhang, Zhenyu and Wang, Yubin and Li, Quangang and Zhang, Shuai and Liu, Tingwen},
  booktitle={Joint European Conference on Machine Learning and Knowledge Discovery in Databases},
  pages={107--123},
  year={2023}
}

dualg's People

Contributors

ygc666666 avatar ty33123 avatar

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.