Dialogue Relationship Extraction with Dependency Relation
-
Download GloVe vectors from here and put it into
dataset/
folder, Then download BERT-base-uncased model from here and put it intohuggingface/bert-base-uncased/
folder. -
Install from requirements.txt by
pip install -r requirements.txt
and runpython -m spacy download en_core_web_sm
-
Insatll dgl library according to your cuda version using the command like below.
pip install dgl-cu110==0.6.1 # For CUDA 11.0 Build
- download
stopwords
using the commands like below.
python
>>> import nltk
>>> nltk.download('stopwords')
Execute the following command to train the DEP-GAN model.
# DEP-GAT-BERT model
python DEP-GAT-BERT.py
# DEP-GAT-LSTM model
python DEP-GAT-LSTM.py
# DEP-GAT-BERT model
python DEP-GAT-BERT.py --mode test --ckpt_path [your_ckpt_file_path]
# DEP-GAT-LSTM model
python DEP-GAT-LSTM.py --mode test --ckpt_path [your_ckpt_file_path]