arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.19173cs.CLcs.AI
收藏

FarSSiBERT:一种用于波斯语社交网络非正式文本语义相似度测量的新型 Transformer 模型

FarSSiBERT: A Novel Transformer-based Model for Semantic Similarity Measurement of Persian Social Networks Informal Texts

Shahrood University of Technology(沙赫鲁德理工大学);Hazrat-e Masoumeh University(哈兹拉特·马苏梅大学);Iran Telecommunication Research Center (ITRC)(伊朗电信研究中心)

Seyed Mojtaba Sadjadi, Zeinab Rajabi, Leila Rabiei, Mohammad-Shahram Moin

AI总结:

本文提出基于BERT从头训练的FarSSiBERT模型,用于测量波斯语社交网络非正式短文本的语义相似度,并构建了FarSSiM数据集,实验证明其在Pearson和Spearman系数上优于多个主流模型。

摘要:

确定两段文本之间的相似性并评估其相似程度是自然语言处理(NLP)的一项基础任务。以往针对波斯语的方法准确率较低,且无法有效理解文本的结构与含义。此外,这些方法主要侧重于正式文本,但在实际的文本处理应用中,需要能够处理口语化文本的稳健方法。这要求算法能够基于上下文考虑词语的结构和重要性,而不仅仅是词频。由于波斯语缺乏用于此任务的适当数据集,因此开发此类算法并为波斯文本构建数据集显得尤为重要。本文提出了一种新的基于 Transformer 的模型,用于测量来自社交网络的波斯语非正式短文本之间的语义相似度。此外,为此目的构建了一个名为 FarSSiM 的波斯语数据集,该数据集使用来自社交网络的真实数据,并由语言学专家团队手动标注和验证。所提出的模型涉及使用 BERT 架构从头开始训练大型语言模型。该模型被称为 FarSSiBERT,在约 1.04 亿条来自社交网络的波斯语非正式短文本上进行了预训练,使其在波斯语中独树一帜。此外,还提供了一种新型专用非正式语言分词器,它不仅能在正式文本上很好地执行分词,还能准确识别其他波斯语分词器无法识别的词元。结果表明,我们提出的模型在 Pearson 和 Spearman 系数标准上优于 ParsBERT、laBSE 和 multilingual BERT。此外,预训练的大型语言模型在口语化文本的其他 NLP 任务以及作为鲜为人知的非正式词汇的分词器方面具有巨大潜力。

英文摘要:

One fundamental task for NLP is to determine the similarity between two texts and evaluate the extent of their likeness. The previous methods for the Persian language have low accuracy and are unable to comprehend the structure and meaning of texts effectively. Additionally, these methods primarily focus on formal texts, but in real-world applications of text processing, there is a need for robust methods that can handle colloquial texts. This requires algorithms that consider the structure and significance of words based on context, rather than just the frequency of words. The lack of a proper dataset for this task in the Persian language makes it important to develop such algorithms and construct a dataset for Persian text. This paper introduces a new transformer-based model to measure semantic similarity between Persian informal short texts from social networks. In addition, a Persian dataset named FarSSiM has been constructed for this purpose, using real data from social networks and manually annotated and verified by a linguistic expert team. The proposed model involves training a large language model using the BERT architecture from scratch. This model, called FarSSiBERT, is pre-trained on approximately 104 million Persian informal short texts from social networks, making it one of a kind in the Persian language. Moreover, a novel specialized informal language tokenizer is provided that not only performs tokenization on formal texts well but also accurately identifies tokens that other Persian tokenizers are unable to recognize. It has been demonstrated that our proposed model outperforms ParsBERT, laBSE, and multilingual BERT in the Pearson and Spearman's coefficient criteria. Additionally, the pre-trained large language model has great potential for use in other NLP tasks on colloquial text and as a tokenizer for less-known informal words.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑