A metaphor is an expression that compares one concept with another, directly or indirectly, so that a literal reading of the words would miss the intended meaning. Detecting metaphors is a challenging problem for computational systems, and almost all existing research and benchmark corpora, such as VUA, TroFi and MOH-X, focus on English. For low-resource languages like Tamil, which lack large corpora and manually crafted linguistic resources, metaphor detection had not been explored, and no annotated Tamil metaphor dataset existed.
Tam-Met addresses this gap end to end. A new corpus was constructed from Tamil song lyrics and annotated by three native Tamil speakers, with a second dataset of metaphorical lyrics labelled with their source words. For sentence-level metaphor classification, Tamil-capable pretrained transformers (Bert-Tamil, MuRIL and IndicBERT) were fine-tuned with a dropout and linear classification head and compared on the new dataset. For metaphor extraction, the multilingual encoder-decoder model mBART was fine-tuned as a sequence-to-sequence model that takes a lyric as input and generates its metaphorical source term. The best models were integrated into a web-based Metaphor Detection Tool.
The classification corpus contains 925 lyrics drawn from 179 songs (439 metaphorical and 485 non-metaphorical), and a separate extraction dataset contains 766 metaphorical lyrics annotated with source words. Inter-annotator agreement measured with Fleiss' kappa reached 0.826, indicating a reliable dataset. Using an 80:10:10 split, the multilingual MuRIL model achieved the best classification F1-score of 0.8282 (precision 0.7454, recall 0.9318, accuracy 0.8172), followed by monolingual Bert-Tamil (F1 0.8172, accuracy 0.8172) and IndicBERT (F1 0.7252, accuracy 0.7311). For source-word extraction, the fine-tuned mBART model achieved an average ROUGE-1 precision of 0.5954, recall of 0.5625 and F1 of 0.5589, with character-level scores of 0.7145 (Levenshtein), 0.6062 (character BLEU) and 0.6378 (chrF).
Tamil Metaphor Corpora
The first annotated Tamil metaphor datasets, built from song lyrics: a binary-labelled classification corpus (Fleiss' kappa 0.826) and a metaphorical corpus annotated with source words for extraction.
Transformer Benchmarks for Tamil Metaphor Detection
A comparison of monolingual and multilingual Tamil transformers (Bert-Tamil, MuRIL, IndicBERT) for sentence-level metaphor classification, and an mBART-based sequence-to-sequence model for source-term extraction.
Metaphor Detection Tool
A web-based dashboard that lets users enter Tamil lyrics or text to detect whether it is metaphorical and identify the metaphorical source term.
As the first work on metaphor detection for Tamil, the project lays a foundation for figurative language understanding in a low-resource language and provides datasets and baselines that others can build on. Future work includes enlarging the dataset to improve performance and extracting the relationship between source and target terms, which is crucial for interpreting a metaphor's meaning.
Project poster: Metaphor Detection for Low Resource Languages – Tamil
Web-based Metaphor Detection Tool for Tamil lyrics
Sareefu Mohamed Sarraj
Undergraduate Researcher
Individual researcher who built the Tamil metaphor corpora, fine-tuned the classification and extraction models, and developed the Metaphor Detection Tool.