Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

From Machine Translation to Code-Switching: Generating High-Quality Code-Switched Text

About

Generating code-switched text is a problem of growing interest, especially given the scarcity of corpora containing large volumes of real code-switched text. In this work, we adapt a state-of-the-art neural machine translation model to generate Hindi-English code-switched sentences starting from monolingual Hindi sentences. We outline a carefully designed curriculum of pretraining steps, including the use of synthetic code-switched text, that enable the model to generate high-quality code-switched text. Using text generated from our model as data augmentation, we show significant reductions in perplexity on a language modeling task, compared to using text from other generative models of CS text. We also show improvements using our text for a downstream code-switched natural language inference task. Our generated text is further subjected to a rigorous evaluation using a human evaluation study and a range of objective metrics, where we show performance comparable (and sometimes even superior) to code-switched text obtained via crowd workers who are native Hindi speakers.

Ishan Tarunesh, Syamantak Kumar, Preethi Jyothi• 2021

Related benchmarks

TaskDatasetResultRank
Code-Switching Text GenerationAll-CS Mono filter (test)
BERTScore82.1
10
Code-switching Real vs Fake ClassificationAll-CS (test)
Accuracy (Fake Class)88.62
10
Language ModelingAll-CS (test)
Test Perplexity254.4
8
Language ModelingOpSub (test)
Test Perplexity56.28
8
Natural Language Inference and Sentiment AnalysisGLUECoS (test)
NLI Accuracy0.5957
6
Code-Switching Text GenerationAll-CS UNK filter (test)
BERTScore84.6
5
Human Evaluation of Code-Switching GenerationHuman Evaluation Dataset 150 samples from 5 sources
Syntactic Score4.21
5
Code-Switching Text GenerationAll-CS (test)
Gzip (D)21.37
5
Showing 8 of 8 rows

Other info

Code

Follow for update