completed Jan 2023 - May 2024

Tam-Met: Metaphor Detection for Low-Resource Languages – Tamil

#NLP #Metaphor Detection #Tamil #Low-Resource Languages #Dataset #Transformers
Tam-Met: Metaphor Detection for Low-Resource Languages – Tamil

Overview

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.

Motivation & Objectives

Metaphor detection plays an important role in machine translation, text summarisation, paraphrasing, question answering, AI-based generation and cross-cultural understanding, yet Tamil lacked both research and corpora in this area. Extracting source and target pairs is also largely unexplored, as recent work focuses on word-level detection. The project set out four objectives:

Metaphor Corpus – To build a Tamil metaphor identification corpus of roughly 500 metaphorical and 500 non-metaphorical song lyrics with strong inter-annotator agreement.

Source–Target Corpus – To build a corpus of metaphorical sentences labelled with their source and target words.

Binary Classification – To develop a tool that classifies whether an input sentence contains a metaphor with acceptable precision and recall.

Metaphor Extraction – To build a sequence-to-sequence extraction tool that identifies the metaphorical source domain in an input sentence.

Impact & Results

Performance

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).

Key Contributions

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.

Real-world Impact

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.

Gallery

Project poster: Metaphor Detection for Low Resource Languages – Tamil

Project poster: Metaphor Detection for Low Resource Languages – Tamil

Web-based Metaphor Detection Tool for Tamil lyrics

Web-based Metaphor Detection Tool for Tamil lyrics

Project Team

S

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.