Style transfer in text refers to the task of converting the style of one text to that of another text while preserving its content. The objective is to develop an approach that can take a source text as input and generate a new text in a target style.
This project has been developed as part of completion of the Neural Natural Language Generation course, IIIT-Hyderabad (2023).
.
├── baseline_outputs # contains generation output for baseline model
├── control_tokens # contains files used for the approach
├── evaluators # contains custom metric evaluation scripts
├── scripts # contains training scripts
├── utils # contains additional scripts
├── environment.txt # project level dependencies
└── README.md
.
├── generation_em.txt # baseline generation output for GYAFC-EM
└── generation_fr.txt # baseline generation output for GYAFC-FR
.
├── dataset # contains dataset and preparation script
└── outputs # contains generation output for this approach
.
├── analysis # contains notebooks with analysis of evaluators
├── cps_evaluator.py # Content Preservation Score
├── sti_evaluator.py # Style Transfer Intensity
└── style_evaluator.py # Style Strength
.
├── bart.sh # finetuning BART for baseline
├── bert.sh # finetuning BERT classifier
└── gpt.sh # finetuning GPT-2 for baseline
.
└── bert_cls.py # train script for BERT classifier fine-tuning
conda create --name <env> --file environment.txt
conda activate <env>
- BART Baseline Checkpoints - link
- BERT Classifier Checkpoint - link
- BART+ControlTokens Baseline+ Checkpoints - link
Padakanti Srijith (2019114002)
Jerrin John Thomas (2019114012)
Nikhil Bishnoi (2019114021)
Suraj Kumar (2019900038)
T Sreekanth (2019900090)