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

探究大语言模型用于文本预处理的语言能力

Investigating Large Language Models' Linguistic Abilities for Text Preprocessing

University of Milano-Bicocca(米兰-比科卡大学);Politecnico di Torino(托里尼 Politecnico)

Marco Braga, Gian Carlo Milanese, Gabriella Pasi

AI总结:

本文研究使用大语言模型(LLMs)结合上下文进行文本预处理(停用词移除、词形还原和词干提取),发现其在六种欧洲语言中能高准确率复制传统方法,并使下游文本分类的$F_1$指标提升达6%。

摘要:

文本预处理是自然语言处理的基础组件,涉及停用词移除、词干提取和词形还原等技术,旨在将文本准备为后续处理与分析的输入。尽管上述技术具有上下文依赖的特性,传统方法通常忽略上下文信息。在本文中,由于大语言模型(LLMs)能够考虑上下文且无需大量特定语言的标注资源,我们研究了使用LLMs执行各种预处理任务的想法。通过对网络来源数据进行全面评估,我们在六种欧洲语言的多个文本分类任务中,将基于LLM的预处理(具体为停用词移除、词形还原和词干提取)与传统算法进行了比较。分析表明,LLMs能够复制传统的停用词移除、词形还原和词干提取方法,准确率分别达到97%、82%和74%。此外,我们展示了在由LLMs预处理的文本上训练的ML算法,与传统技术相比,在$F_1$指标上实现了高达6%的提升。我们的代码、提示词和结果已在 https://github.com/GianCarloMilanese/llm_pipeline_wi-iat 上公开。

英文摘要:

Text preprocessing is a fundamental component of Natural Language Processing, involving techniques such as stopword removal, stemming, and lemmatization to prepare text as input for further processing and analysis. Despite the context-dependent nature of the above techniques, traditional methods usually ignore contextual information. In this paper, we investigate the idea of using Large Language Models (LLMs) to perform various preprocessing tasks, due to their ability to take context into account without requiring extensive language-specific annotated resources. Through a comprehensive evaluation on web-sourced data, we compare LLM-based preprocessing (specifically stopword removal, lemmatization and stemming) to traditional algorithms across multiple text classification tasks in six European languages. Our analysis indicates that LLMs are capable of replicating traditional stopword removal, lemmatization, and stemming methods with accuracies reaching 97%, 82%, and 74%, respectively. Additionally, we show that ML algorithms trained on texts preprocessed by LLMs achieve an improvement of up to 6% with respect to the $F_1$ measure compared to traditional techniques. Our code, prompts, and results are publicly available at https://github.com/GianCarloMilanese/llm_pipeline_wi-iat.

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

↑