Learning Disentangled Meaning and Style Representations for Positive Text Reframing
Python
8
22 commits
updated Oct 21, 2024
The code of is developed on nlpe, a python package for processing NLP experiments.
Source of data: MSCOCO (version from here), Yelp (version from here), PPF
Clone the repository.
git clone https://github.com/codesedoc/DMSR.git
cd DMSR
conda env create -f conda/environment_linux-64.yml # for linxu-64 platform
# conda env create -f conda/environment_oxs-arm64.yml # for oxs-arm64 (Mac Silicon) platform
# conda env create -f conda/environment_win-64.yml # for win-64 platform
conda activate dmsr
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python main.py -t ptr -d ppf --dataset_raw_dir storage/dataset/ppf/raw -a dmsr --output_dir tmp --do_train --do_eval --do_predict
The other usages of transformers TrainiArgument can be referred to here.
@inproceedings{
sheng-etal-2023-learning,
title = "Learning Disentangled Meaning and Style Representations for Positive Text Reframing",
author = "Sheng, Xu and
Fukumoto, Fumiyo and
Li, Jiyi and
Kentaro, Go and
Suzuki, Yoshimi",
booktitle = "Proceedings of the 16th International Natural Language Generation Conference",
month = sep,
year = "2023",
address = "Prague, Czechia",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.inlg-main.31",
pages = "424--430",
}
Learning Disentangled Meaning and Style Representations for Positive Text Reframing
Python
8
22 commits
updated Oct 21, 2024
The code of is developed on nlpe, a python package for processing NLP experiments.
Source of data: MSCOCO (version from here), Yelp (version from here), PPF
Clone the repository.
git clone https://github.com/codesedoc/DMSR.git
cd DMSR
conda env create -f conda/environment_linux-64.yml # for linxu-64 platform
# conda env create -f conda/environment_oxs-arm64.yml # for oxs-arm64 (Mac Silicon) platform
# conda env create -f conda/environment_win-64.yml # for win-64 platform
conda activate dmsr
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python main.py -t ptr -d ppf --dataset_raw_dir storage/dataset/ppf/raw -a dmsr --output_dir tmp --do_train --do_eval --do_predict
The other usages of transformers TrainiArgument can be referred to here.
@inproceedings{
sheng-etal-2023-learning,
title = "Learning Disentangled Meaning and Style Representations for Positive Text Reframing",
author = "Sheng, Xu and
Fukumoto, Fumiyo and
Li, Jiyi and
Kentaro, Go and
Suzuki, Yoshimi",
booktitle = "Proceedings of the 16th International Natural Language Generation Conference",
month = sep,
year = "2023",
address = "Prague, Czechia",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.inlg-main.31",
pages = "424--430",
}