Skip to content

Code for IEEE-TKDE paper "Weakly Supervised Concept Map Generation through Task-Guided Graph Translation""

Notifications You must be signed in to change notification settings

lujiaying/GT-doc2graph

Repository files navigation

Weakly Supervised Concept Map Generation through Task-Guided Graph Translation

DOI


GT-D2G Model

This is the codebase for reproducing results of TKDE paper: "Weakly Supervised Concept Map Generation through Task-Guided Graph Translation". (arXiv link)

Proposed Framework

Graph Translator

Prerequisites

python==3.7.9

For library requirements, please refer to ./requirements.txt. (You may replace PyTorch and dgl to CPU version)

Data

Pre-processed Graphs

The NLP pipeline derived initial concept maps are available at NYT link, AMiner link, YELP link.
Put it under the project root directory and decompress it. Then three *.pickle.gz files would reside under ./data/. (No need to decompress *.pickle.gz files)

The expected ./data folder after downloading necessary resources:

./data
|-- dblp.txt     # dblp refer to AMiner corpus used in paper
|-- dblp.win5.pickle.gz
|-- nyt.txt
|-- nyt.win5.pickle.gz
|-- yelp.txt
|-- yelp.sentiment_centric.win5.pickle.gz

Pre-trained Word Embeddings

GT-D2G relies on several pre-trained word embeddings. By default, the scripts read pre-trained embeddings from ./.vector_cache folder.

The expected ./.vector_cache folder:

./.vector_cache
|--glove.840B.300d.txt
|--glove.840B.restaurant.400d.vec

Reproduce Classification Results

Checkpoints

Please download gziped checkpoint files using the above urls, and decompress them under ./checkpoints folder.

Example of running GT-D2G for reproducibility: sh run_test.sh.

Training

You can train your own GT-D2G by modifying provided examples run_train.sh.

Case Study

NYT1


NYT2


YELP1


DBLP1

About

Code for IEEE-TKDE paper "Weakly Supervised Concept Map Generation through Task-Guided Graph Translation""

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published