MaskLID: Code-Switching Language Identification through Iterative Masking

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Kargaran, Amir Hossein, Yvon, François, Schütze, Hinrich
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911911963000832
author Kargaran, Amir Hossein
Yvon, François
Schütze, Hinrich
author_facet Kargaran, Amir Hossein
Yvon, François
Schütze, Hinrich
contents We present MaskLID, a simple, yet effective, code-switching (CS) language identification (LID) method. MaskLID does not require any training and is designed to complement current high-performance sentence-level LIDs. Sentence-level LIDs are classifiers trained on monolingual texts to provide single labels, typically using a softmax layer to turn scores into probabilities. However, in cases where a sentence is composed in both L1 and L2 languages, the LID classifier often only returns the dominant label L1. To address this limitation, MaskLID employs a strategy to mask text features associated with L1, allowing the LID to classify the text as L2 in the next round. This method uses the LID itself to identify the features that require masking and does not rely on any external resource. In this work, we explore the use of MaskLID for two open-source LIDs (GlotLID and OpenLID), that are both based on the FastText architecture. Code and demo are available at https://github.com/cisnlp/MaskLID.
format Preprint
id arxiv_https___arxiv_org_abs_2406_06263
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MaskLID: Code-Switching Language Identification through Iterative Masking
Kargaran, Amir Hossein
Yvon, François
Schütze, Hinrich
Computation and Language
We present MaskLID, a simple, yet effective, code-switching (CS) language identification (LID) method. MaskLID does not require any training and is designed to complement current high-performance sentence-level LIDs. Sentence-level LIDs are classifiers trained on monolingual texts to provide single labels, typically using a softmax layer to turn scores into probabilities. However, in cases where a sentence is composed in both L1 and L2 languages, the LID classifier often only returns the dominant label L1. To address this limitation, MaskLID employs a strategy to mask text features associated with L1, allowing the LID to classify the text as L2 in the next round. This method uses the LID itself to identify the features that require masking and does not rely on any external resource. In this work, we explore the use of MaskLID for two open-source LIDs (GlotLID and OpenLID), that are both based on the FastText architecture. Code and demo are available at https://github.com/cisnlp/MaskLID.
title MaskLID: Code-Switching Language Identification through Iterative Masking
topic Computation and Language
url https://arxiv.org/abs/2406.06263