A Simple Contrastive Learning Framework for Interactive Argument Pair Identification via Argument-Context Extraction(EMNLP 2022)
The method is implemented using PyTorch.
config
: the config and hyperparameter filedata
: please put data in this folderdataset.py
: data preprocessing filemodels.py
: model file.evaluation.py
: evaluation function filetrain.py
: training, validation function filetest.py
: testing functionace.py
: argument-context extraction module
python train.py
config/hyparameter.json is the config file. It contains a number of hyperparameters. Hyperparameters can be modified for custom training.
noisy: NO
,RandomWordAug
,BackTranslationAug
,KeyboardAug
objective:BCE
,BCE+SCL
hard_sample_con:NO
,YES
model_type:bert_without_context
,bert_with_context
python test.py
@inproceedings{shi2022simple,
title={A Simple Contrastive Learning Framework for Interactive Argument Pair Identification via Argument-Context Extraction},
author={Shi, Lida and Giunchiglia, Fausto and Song, Rui and Shi, Daqian and Liu, Tongtong and Diao, Xiaolei and Xu, Hao},
booktitle={Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing},
pages={10027--10039},
year={2022}
}