From N-grams to Pre-trained Multilingual Models For Language Identification

Thapelo Sindane, Vukosi Marivate
10/11/2024
cs.CLcs.AI

No official code found. Best implementation: dsfsi/za-lid (0 stars, last commit 2024-09-29).

Abstract

In this paper, we investigate the use of N-gram models and Large Pre-trained Multilingual models for Language Identification (LID) across 11 South African languages. For N-gram models, this study shows that effective data size selection remains crucial for establishing effective frequency distributions of the target languages, that efficiently model each language, thus, improving language ranking. For pre-trained multilingual models, we conduct extensive experiments covering a diverse set of massively pre-trained multilingual (PLM) models -- mBERT, RemBERT, XLM-r, and Afri-centric multilingual models -- AfriBERTa, Afro-XLMr, AfroLM, and Serengeti. We further compare these models with available large-scale Language Identification tools: Compact Language Detector v3 (CLD V3), AfroLID, GlotLID, and OpenLID to highlight the importance of focused-based LID. From these, we show that Serengeti is a superior model across models: N-grams to Transformers on average. Moreover, we propose a lightweight BERT-based LID model (za_BERT_lid) trained with NHCLT + Vukzenzele corpus, which performs on par with our best-performing Afri-centric models.

View on arXivView PDF

Code Implementations(1)

dsfsi/za-lidCommunity100%

This repository contains datasets extracted from Vuk'zenzele prepared to train N-gram models, and traditional ML models (Naive Bases, SVM, and Logistic Regression), and Large pretrained multilingual models for language identification

00Shell, PythonSep 27, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{sindane2024from,
  title  = {From N-grams to Pre-trained Multilingual Models For Language Identification},
  author = {Thapelo Sindane and Vukosi Marivate},
  year   = {2024},
  eprint = {2410.08728},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.08728v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.08728.svg)](https://codeofpaper.com/paper/2410.08728)

Discussion