Towards Computational Linguistics in Minangkabau Language: Studies on Sentiment Analysis and Machine Translation

TL;DR

This study applies classical machine learning and Seq2Seq models (LSTM, Transformer) to Minangkabau sentiment analysis and machine translation, constructing the first relevant corpora.

cs.CL 🔴 Advanced 2020-09-20 63 views
Fajri Koto Ikhwan Koto
NLP low-resource languages sentiment analysis machine translation Minangkabau

Key Findings

Methodology

The research employs manually constructed Minangkabau–Indonesian parallel corpora, integrating traditional ML algorithms (Naive Bayes, SVM, Logistic Regression) and deep Seq2Seq models (Bi-LSTM, Transformer, MBERT). For translation, Wikipedia and social media data were used, with sentence alignment via ROUGE-1 and BLEU evaluation. The models were trained on Indonesian data, tested on Minangkabau, focusing on zero-shot transfer and dictionary-assisted translation. The corpus includes 16K parallel sentences, with manual validation ensuring high quality. Experiments compare model performances across tasks, analyzing the impact of vocabulary overlap and dialectal variation.

Key Results

  • Naive Bayes achieved 68.49 F1-score in Minangkabau sentiment classification, outperforming MBERT, highlighting the importance of vocabulary overlap in low-resource settings.
  • Dictionary-based Word-to-Word translation yielded BLEU scores of 64.54 (MIN→ID) and 55.08 (ID→MIN), surpassing LSTM and Transformer, demonstrating the effectiveness of simple dictionary methods under resource constraints.
  • Model performance varied significantly across tasks and datasets, with high vocabulary overlap (~75%) aiding transfer, but out-of-vocabulary issues hampering out-of-domain translation, emphasizing the need for larger, diverse corpora.

Significance

This pioneering work introduces NLP techniques to Minangkabau, a minority language, creating foundational corpora and benchmarks. It demonstrates that dictionary-assisted translation can outperform complex models in low-resource environments, offering a practical pathway for digital preservation. The findings highlight the potential of transfer learning and multilingual models in minority language processing, fostering cultural heritage preservation and technological inclusion. The study also provides insights into cross-lingual transferability, informing future multilingual NLP system development, and addressing the global challenge of linguistic diversity.

Technical Contribution

The paper's main innovations include the creation of a large-scale Minangkabau–Indonesian parallel corpus, the systematic comparison of traditional ML and deep Seq2Seq models, and the validation of dictionary-assisted translation strategies. It introduces a benchmark framework for low-resource NLP tasks, emphasizing the synergy of lexicon resources and neural models. The integration of MBERT for minority language classification is a novel application, expanding the scope of pre-trained multilingual models. These contributions advance the state-of-the-art in low-resource NLP, providing practical solutions and theoretical insights for similar languages.

Novelty

This is the first comprehensive NLP study on Minangkabau, involving corpus construction, sentiment analysis, and machine translation. It uniquely combines manual lexicon creation, traditional ML, and deep learning models, demonstrating that simple dictionary-based translation can outperform complex neural models in resource-limited settings. The work sets a precedent for low-resource language processing, emphasizing the importance of lexicon resources and transfer learning, distinguishing it from prior high-resource language studies.

Limitations

  • Limited corpus size and manual translation introduce noise and bias, affecting model robustness and generalization.
  • Cross-lingual transfer performance is inconsistent, especially with out-of-vocabulary words and dialectal variations, limiting scalability.
  • The models struggle with dialect diversity and domain adaptation, requiring larger, more diverse datasets for improved robustness.

Future Work

Future efforts will focus on expanding corpus size, incorporating unsupervised and semi-supervised learning to enhance model performance, especially in out-of-domain scenarios. Exploring multi-task and multi-lingual transfer learning could improve dialectal robustness. Additionally, integrating speech and multimodal data may broaden application scope, supporting comprehensive preservation and revitalization of Minangkabau and other minority languages.

AI Executive Summary

This pioneering study marks a significant step in applying computational linguistics to the Minangkabau language, a minority language with limited digital resources. The researchers constructed the first large-scale Minangkabau–Indonesian parallel corpus, comprising 16,000 sentences, sourced from Wikipedia and social media, with manual translation and rigorous sentence alignment. This corpus serves as a foundation for two core NLP tasks: sentiment analysis and machine translation. To evaluate the feasibility of low-resource NLP, the team employed a suite of models, including traditional classifiers like Naive Bayes, SVM, Logistic Regression, and advanced neural models such as Bi-LSTM, Transformer, and MBERT. The experiments revealed that in cross-lingual transfer scenarios, simple dictionary-assisted Word-to-Word translation outperformed deep neural models in BLEU scores, reaching 64.54 for MIN→ID translation, demonstrating the power of lexicon-based approaches when data is scarce. In sentiment classification, Naive Bayes achieved an F1-score of 68.49, surpassing MBERT, underscoring the importance of vocabulary overlap in low-resource settings. These results highlight that, despite limited data, effective NLP for minority languages is achievable through strategic resource utilization. The research underscores the importance of tailored corpora and lexicon resources, providing a practical blueprint for digital preservation of endangered languages. Looking ahead, expanding corpus size, leveraging semi-supervised learning, and exploring multi-task transfer learning are promising directions to improve robustness and scalability. Overall, this work not only advances NLP for Minangkabau but also offers valuable insights for similar languages worldwide, fostering cultural preservation and technological inclusion in a multilingual world.

Deep Analysis

Background

The increasing linguistic diversity worldwide emphasizes the importance of digital preservation for minority languages like Minangkabau. Historically, research focused on phonetics, morphology, and lexicography (Rusmali et al., 1985; Crouch, 2009), but lacked systematic corpora for NLP applications. With social media’s rise, Minangkabau’s online presence grew, yet the scarcity of annotated datasets hindered computational efforts. Similar low-resource languages such as Javanese and Sundanese have seen progress through speech chain models and translation systems (Wibawa et al., 2018; Suryani et al., 2016), but Minangkabau remains underexplored. This study aims to fill this gap by constructing the first parallel corpus, evaluating classical and neural models, and exploring transfer learning strategies, thus laying a foundation for future NLP applications and cultural preservation efforts.

Core Problem

The core challenge lies in the severe lack of annotated corpora, standardized resources, and dialectal diversity for Minangkabau. Existing linguistic resources are limited to dictionaries and phonological descriptions, insufficient for training data-hungry models like deep neural networks. The dialectal variation complicates corpus collection and model generalization, while the limited vocabulary coverage hampers transfer learning. Additionally, the absence of large-scale parallel corpora restricts the development of high-performance translation and classification systems. Overcoming these bottlenecks is crucial for enabling effective NLP tools that can support language revitalization, digital archiving, and cultural promotion, especially in a context where the language is primarily oral and informal.

Innovation

This work introduces several innovations: 1) manual construction of a 16K sentence parallel corpus for Minangkabau–Indonesian translation, filling a critical resource gap; 2) development of a bilingual dictionary with 11,905 entries, leveraging Wikipedia data; 3) systematic comparison of traditional ML models and deep Seq2Seq architectures in low-resource settings; 4) pioneering application of MBERT for indigenous language classification. The integration of lexicon-based translation with neural models demonstrates a practical approach to low-resource NLP, emphasizing the synergy between linguistic resources and machine learning. The research also pioneers the evaluation of cross-lingual transfer in a minority language context, providing new insights into model robustness and resource efficiency.

Methodology

  • �� Data collection: Extracted Wikipedia articles and social media posts in Minangkabau, manually translated top words, and aligned sentences using ROUGE-1 scores. • Dictionary creation: Selected top 20,000 words from Wikipedia, manually translated into Indonesian, filtered via KBBI, resulting in 11,905 entries. • Corpus construction: Aligned 111,430 document pairs, segmented into sentences, and filtered to 345,146 sentence pairs with ROUGE-1 > 0.5. • Model training: Employed classical ML (Naive Bayes, SVM, Logistic Regression) with byte-pair encoding, deep models (Bi-LSTM, Transformer), and MBERT, fine-tuning each on Indonesian data. • Evaluation: Used BLEU scores for translation, F1-score for sentiment analysis, with 5-fold cross-validation and manual validation for corpus quality. • Experiments: Conducted zero-shot transfer tests, comparing performance on Minangkabau and Indonesian translations, analyzing vocabulary overlap and out-of-vocabulary issues.

Experiments

The experiments involved training models on Indonesian data and testing on Minangkabau, assessing zero-shot transfer. For sentiment analysis, datasets from Koto and Rahmaningtyas (2017) were translated into Minangkabau, with 1481 positive and 3519 negative labels. Models included Naive Bayes, SVM, Logistic Regression, Bi-LSTM with pre-trained fastText embeddings, and MBERT. For machine translation, models trained on Wikipedia and Sentiment corpora used Word-to-Word, LSTM, and Transformer architectures, evaluated via BLEU scores. The translation experiments revealed that dictionary-based W2W translation achieved BLEU scores over 60, outperforming neural models, especially on out-of-domain data. The sentiment models showed that simple models like Naive Bayes could outperform deep models in zero-shot scenarios, emphasizing vocabulary overlap's importance. Manual evaluation confirmed the effectiveness of dictionary-assisted translation and the challenges posed by dialectal variation.

Results

The key findings include: 1) Naive Bayes achieved 68.49 F1 in Minangkabau sentiment classification, surpassing MBERT; 2) Word-to-Word translation with a bilingual dictionary reached BLEU scores of 64.54 (MIN→ID), outperforming LSTM (56.25) and Transformer (43.50); 3) Cross-lingual transfer performance significantly drops in out-of-domain datasets, highlighting vocabulary and dialect limitations; 4) Manual validation confirmed dictionary-assisted translation's high adequacy and fluency; 5) The high vocabulary overlap (~75%) facilitated transfer learning, but out-of-vocabulary issues remain a bottleneck.

Applications

The developed corpora and models enable practical applications such as sentiment monitoring on social media, automated translation for cultural content, and digital archiving of Minangkabau texts. These tools can support language revitalization, content localization, and cross-cultural communication. The approach can be extended to other low-resource languages, especially in multilingual societies, fostering linguistic diversity and cultural preservation. In industry, such models can be integrated into chatbots, virtual assistants, and translation services, providing accessible language technology for indigenous communities. Long-term, these efforts could lead to comprehensive NLP ecosystems supporting minority language speakers and cultural heritage.

Limitations & Outlook

The corpus size remains limited, with manual translation introducing noise and bias. Deep neural models underperform in out-of-vocabulary scenarios, especially on domain-specific or dialectal data. The models' robustness across dialects and informal registers needs further validation. Computational costs for training large models are high, and the current approach relies heavily on lexicon resources, which may not scale well. Future work should focus on expanding data, automating annotation, and developing more robust transfer strategies to address these challenges.

Plain Language Accessible to non-experts

Imagine you have a small, old-fashioned toolbox with only a few basic tools. You want to fix a complex machine, but your tools are limited. So, instead of trying to build new tools, you carefully select the most useful ones—like a simple screwdriver and a wrench—and use them cleverly. Researchers faced a similar problem with the Minangkabau language, which is like that small toolbox: there aren't many data or tools available. They collected some sentences from Wikipedia and social media, then made a special dictionary to translate words between Minangkabau and Indonesian. Using this, they trained simple models that could understand and translate sentences. Surprisingly, these simple tools worked better than fancy, complicated machines (like deep neural networks) because they relied on the dictionary, which is like a cheat sheet. This approach shows that even with limited resources, smart strategies can help computers understand and preserve languages that are at risk of disappearing. It's like saving a rare language by using the best tools you have, rather than waiting for perfect equipment.

ELI14 Explained like you're 14

Imagine you're trying to learn a new language, but all you have are a few old books and a small dictionary. You want to talk with people and understand their stories, but it's hard because there aren't many examples or lessons. Scientists face the same problem with languages like Minangkabau—they don't have enough texts or data to teach computers how to understand and translate. So, they use a simple trick: they make a special dictionary that matches words in Minangkabau with Indonesian, and then use that to help the computer translate sentences. They also try different methods—some simple, some fancy—like using a basic dictionary or complex neural networks. Surprisingly, the simple dictionary method often works better when data is scarce because it directly uses known word matches. It's like if you want to build a puzzle with only a few pieces, using the picture on the box (the dictionary) helps you put it together faster. This research shows that even with limited tools, you can still do a good job of understanding and translating a language, helping to keep it alive for future generations.

Abstract

Although some linguists (Rusmali et al., 1985; Crouch, 2009) have fairly attempted to define the morphology and syntax of Minangkabau, information processing in this language is still absent due to the scarcity of the annotated resource. In this work, we release two Minangkabau corpora: sentiment analysis and machine translation that are harvested and constructed from Twitter and Wikipedia. We conduct the first computational linguistics in Minangkabau language employing classic machine learning and sequence-to-sequence models such as LSTM and Transformer. Our first experiments show that the classification performance over Minangkabau text significantly drops when tested with the model trained in Indonesian. Whereas, in the machine translation experiment, a simple word-to-word translation using a bilingual dictionary outperforms LSTM and Transformer model in terms of BLEU score.

cs.CL