MixLID:混合语言文本中的词元级语言识别

·

研究论文 · 2026/10/14

处理多语言文本需要识别广泛的语言,并在包含多种语言的输入中区分每个词元的语言。我们介绍了MixLID,一个支持111种语言-文字组合的词元级语言识别模型。MixLID采用两阶段训练过程:首先使用单语示例的语言标签学习区分单个语言,然后在混合语言数据上继续训练。第二阶段使用来自现有语码转换数据的拼接示例,以及通过基于英语源词和借词之间对应关系的词替换创建的增强示例。在单语识别方面,MixLID在与每个基线共享的语言覆盖范围内,在四个基准测试的准确率和宏F1上均优于所有基线。在混合语言识别方面,它在每个评估的语言对上识别单个词元的语言时均优于基线。MixLID在单语和混合语言设置中在广泛的语言范围内实现了高性能。该模型公开可用,网址为https://huggingface.co/nlpai-lab/MixLID。

该工作提出了一个支持111种语言-文字组合的词元级语言识别模型,在单语和混合语言场景下均优于基线,且模型公开可用,对多语言自然语言处理任务具有实用价值。

Processing multilingual text requires both identifying a broad range of languages and distinguishing the language of each token in inputs containing multiple languages. We introduce MixLID, a token-level language identification model supporting 111 language-script combinations. MixLID follows a two-stage training process: it first learns to distinguish individual languages using the language labels of monolingual examples, then continues training on mixed-language data. The second stage uses concatenated examples from existing code-switching data alongside augmented examples created through word substitution based on correspondences between English source words and loanwords. For monolingual identification, MixLID outperforms all baselines in both accuracy and macro F1 on four benchmarks within the language coverage shared with each baseline. For mixed-language identification, it outperforms the baselines in identifying the language of individual tokens on every evaluated language pair. MixLID achieves high performance across a broad range of languages in both monolingual and mixed-language settings. The model is publicly available at https://huggingface.co/nlpai-lab/MixLID.

阅读原文

参与讨论