Skip to content

Dialogue Relation Extraction with Document-level Heterogeneous Graph Attention Networks

License

Notifications You must be signed in to change notification settings

Miss-Ming/dialog-HGAT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dialog-HGAT

Dialogue Relation Extraction with Document-level Heterogeneous Graph Attention Networks

Setup

Download GloVe vectors from here and put it into dataset/ folder

Next Install the required libraries:

  1. Assume you have installed Pytorch >= 1.5
  2. Install dgl library according to your cuda version using the commands below
pip install --pre dgl-cu100     # For CUDA 10.0 Build
pip install --pre dgl-cu101     # For CUDA 10.1 Build
pip install --pre dgl-cu102     # For CUDA 10.2 Build
  1. Install PytorchLightning github
  2. Install from requirements.txt by pip install -r requirements.txt

Run code

Training

python main.py

Testing

python main.py --mode test --ckpt_path [your_ckpt_file_path]

Paper Link

https://arxiv.org/pdf/2009.05092.pdf

About

Dialogue Relation Extraction with Document-level Heterogeneous Graph Attention Networks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%