L3Cube-HingCorpus和HingBERT:一个代码混合的印地语-英语数据集和BERT语言模型
L3Cube-HingCorpus and HingBERT: A Code Mixed Hindi-English Dataset and BERT Language Models
摘要:
语码转换发生在一个句子或对话中混合使用一种以上的语言。这种现象在社交媒体平台上更为突出,随着时间的推移,其采用率越来越高。因此,代码混合NLP在文献中得到了广泛的研究。随着预训练的基于transformer的架构越来越受欢迎,我们观察到真正的代码混合数据很少用于预训练大语言模型。我们提出了L3立方体HingCorpus,第一个大规模的真正的印地语-英语代码混合数据的罗马脚本。它由5293万个句子和104亿个标记组成,这些标记来自Twitter。我们进一步介绍了HingBERT、HingMBERT、HingRoBERTA和HingGPT。BERT模型已经使用掩蔽语言建模目标在代码混合的HingCorpus上进行了预训练。我们展示了这些BERT模型在后续下游任务上的有效性,如代码混合情感分析、POS标记、NER和来自GLUECoS基准的LID。HingGPT是一个基于GPT 2的生成式Transformer模型,能够生成完整的tweet。我们还发布了L3 Cube-HingLID语料库,这是最大的代码混合印地语-英语语言识别(LID)数据集,以及HingBERT-LID,这是一个生产质量的LID模型,用于使用本工作中概述的过程来捕获更多代码混合数据。数据集和模型可在https://github.com/l3cube-pune/code-mixed-nlp上获得。
英文摘要:
Code-switching occurs when more than one language is mixed in a given sentence or a conversation. This phenomenon is more prominent on social media platforms and its adoption is increasing over time. Therefore code-mixed NLP has been extensively studied in the literature. As pre-trained transformer-based architectures are gaining popularity, we observe that real code-mixing data are scarce to pre-train large language models. We present L3Cube-HingCorpus, the first large-scale real Hindi-English code mixed data in a Roman script. It consists of 52.93M sentences and 1.04B tokens, scraped from Twitter. We further present HingBERT, HingMBERT, HingRoBERTa, and HingGPT. The BERT models have been pre-trained on codemixed HingCorpus using masked language modelling objectives. We show the effectiveness of these BERT models on the subsequent downstream tasks like code-mixed sentiment analysis, POS tagging, NER, and LID from the GLUECoS benchmark. The HingGPT is a GPT2 based generative transformer model capable of generating full tweets. We also release L3Cube-HingLID Corpus, the largest code-mixed Hindi-English language identification(LID) dataset and HingBERT-LID, a production-quality LID model to facilitate capturing of more code-mixed data using the process outlined in this work. The dataset and models are available at https://github.com/l3cube-pune/code-mixed-nlp .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。