Skip to content

Code for the paper "Memory-Based Invariance Learning for Out-of-Domain Text Classification" in EMNLP'2023

Notifications You must be signed in to change notification settings

jiachenwestlake/MIL

Repository files navigation

MIL

Code for the paper "Memory-Based Invariance Learning for Out-of-Domain Text Classification" in EMNLP'2023

Introduction

The code is built based on the open-source toolkit OpenPrompt.

Requirements

python >= 3.7
torch >= 1.10.0
transformers >= 4.10.0

Usage

Dataset The full preprocessed datasets are available at Dir

Training command

python experiments/cli.py --config_yaml classification_manual_prompt.yaml 

Citation

When you use the our paper, we would appreciate it if you cite the following:

@inproceedings{jia2023memory,
    title = "Memory-Based Invariance Learning for Out-of-Domain Text Classification",
    author = "Jia, Chen  and Zhang, Yue",
    booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
    year = "2023",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.emnlp-main.101",
    pages = "1635--1647"
}

About

Code for the paper "Memory-Based Invariance Learning for Out-of-Domain Text Classification" in EMNLP'2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published