arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16678cs.CLcs.AIcs.LG
收藏

Segment Any Text:一种用于鲁棒、高效且可适应的句子切分的通用方法

Segment Any Text: A Universal Approach for Robust, Efficient and Adaptable Sentence Segmentation

Johannes Kepler University Linz(约翰内斯·开普勒大学林茨分校);University of Cambridge(剑桥大学)

Markus Frohmann, Igor Sterner, Ivan Vulić, Benjamin Minixhofer, Markus Schedl

AI总结:

本文提出通用句子切分模型SaT,通过新预训练方案增强对缺失标点的鲁棒性,并引入参数高效微调以适应新领域,在8个多语言语料库上超越所有基线,同时实现三倍速度提升。

摘要:

将文本切分为句子在许多自然语言处理系统中扮演着早期且关键的角色。这一任务通常通过基于规则或统计的方法来实现,这些方法依赖于标点等词汇特征。尽管近期一些工作不再完全依赖标点,但我们发现此前没有任何方法能够同时实现(i)对缺失标点的鲁棒性,(ii)对新领域的有效适应性,以及(iii)高效率。我们引入了一个新模型——Segment any Text(SaT)——来解决这一问题。为了增强鲁棒性,我们提出了一种新的预训练方案,确保模型对标点的依赖更少。为了解决适应性问题,我们引入了一个额外的参数高效微调阶段,在歌词诗句和法律文档等不同领域建立了最先进的性能。在此过程中,我们引入了架构修改,使速度比之前的最先进方法提高了三倍,并解决了对遥远未来上下文的虚假依赖问题。最后,我们引入了模型的一个变体,该变体在多样化的多语言句子切分数据混合上进行微调,可作为现有切分工具的即插即用替代和增强。总体而言,我们的贡献提供了一种用于切分任意文本的通用方法。我们的方法在跨越不同领域和语言的8个语料库上优于所有基线——包括强大的大语言模型——尤其是在文本格式不佳的实际相关场景中。我们的模型和代码(包括文档)可在 https://github.com/segment-any-text/wtpsplit 获取,遵循 MIT 许可证。

英文摘要:

Segmenting text into sentences plays an early and crucial role in many NLP systems. This is commonly achieved by using rule-based or statistical methods relying on lexical features such as punctuation. Although some recent works no longer exclusively rely on punctuation, we find that no prior method achieves all of (i) robustness to missing punctuation, (ii) effective adaptability to new domains, and (iii) high efficiency. We introduce a new model - Segment any Text (SaT) - to solve this problem. To enhance robustness, we propose a new pretraining scheme that ensures less reliance on punctuation. To address adaptability, we introduce an extra stage of parameter-efficient fine-tuning, establishing state-of-the-art performance in distinct domains such as verses from lyrics and legal documents. Along the way, we introduce architectural modifications that result in a threefold gain in speed over the previous state of the art and solve spurious reliance on context far in the future. Finally, we introduce a variant of our model with fine-tuning on a diverse, multilingual mixture of sentence-segmented data, acting as a drop-in replacement and enhancement for existing segmentation tools. Overall, our contributions provide a universal approach for segmenting any text. Our method outperforms all baselines - including strong LLMs - across 8 corpora spanning diverse domains and languages, especially in practically relevant situations where text is poorly formatted. Our models and code, including documentation, are available at https://github.com/segment-any-text/wtpsplit under the MIT license.

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

↑