Skip to content

Code of the paper: KNOWCOMP POKEMON Team at DialAM-2024: A Two-Stage Pipeline for Detecting Relations in Dialogical Argument Mining

Notifications You must be signed in to change notification settings

HKUST-KnowComp/KnowComp-DialAM2024-ACL2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KNOWCOMP POKEMON Team at DialAM-2024: A Two-Stage Pipeline for Detecting Relations in Dialogical Argument Mining

This is the official repository for the workshop paper in 11th Workshop on Argument Mining: KNOWCOMP POKEMON Team at DialAM-2024: A Two-Stage Pipeline for Detecting Relations in Dialogical Argument Mining. We designed a 2-stage pipeline to detect argumentative and illocutionary relations among propositions and locutions. pipeline

Environment Preparation

Required packages are listed in requirements.txt. Install the environment by running:

pip install -r requirements.txt

Data Extraction

Extract training data from the original nodemap.

Firstly, extract the training data for Step 1 and Step 2 of Stage 1.

python extract_stage1.py \
--data_dir <your path of training nodemaps> \
--save_dir <your path to save extracted data> \
--step <1 or 2> \
--neg 1 \ 
--eval_rate 0.05

Then extract the training data for Stage2

python extract_stage2.py \
--data_dir <your path of training nodemaps> \
--save_dir <your path to save extracted data> \
--neg 1 \ 
--eval_rate 0.05

Training

Train the model by using the following command.

python <training_script> \
--model_path <your model path> \
--data_path <your data dir> \
--output_dir <dir for saving checkpoint files>
  • For Step 1 of Stage 1, use snode_train_step1.py
  • For Step 2 of Stage 1, use snode_train_step2.py
  • For Stage 2, use ya_train.py

About

Code of the paper: KNOWCOMP POKEMON Team at DialAM-2024: A Two-Stage Pipeline for Detecting Relations in Dialogical Argument Mining

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages