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

基于BERT预训练模型的句子排序方法

A New Sentence Ordering Method Using BERT Pretrained Model

University of Tehran(德黑兰大学);University of Rochester(罗切斯特大学)

Melika Golestani, Seyedeh Zahra Razavi, Heshaam Faili

摘要:

构建具有自然语言理解(NLU)能力的系统一直是人工智能最古老的领域之一。NLU的一个重要组成部分是检测文本中包含的事件的逻辑顺序。提出了句子排序的任务来学习事件的连续性,并将其应用于人工智能任务中。以往的工作采用统计方法的性能是穷人,而神经网络为基础的方法是在严重需要大型语料库的模型学习。在本文中,我们提出了一种句子排序的方法,它不需要一个训练阶段,因此,一个大的语料库学习。为此,我们使用BERT预训练模型生成句子嵌入,并使用余弦相似度得分来测量句子相似度。我们建议这个分数作为连续事件的连贯性水平的指标。最后,我们通过蛮力搜索对句子进行排序,以最大限度地提高排序后的句子的整体相似性。我们提出的方法在ROCStories上的表现优于其他基线,ROCStories是一个5句人造故事的语料库。特别是当没有庞大的语料库时,该方法比基于神经网络的方法更有效。这种方法的优点之一是它的可解释性和不需要语言知识。

英文摘要:

Building systems with capability of natural language understanding (NLU) has been one of the oldest areas of AI. An essential component of NLU is to detect logical succession of events contained in a text. The task of sentence ordering is proposed to learn succession of events with applications in AI tasks. The performance of previous works employing statistical methods is poor, while the neural networks-based approaches are in serious need of large corpora for model learning. In this paper, we propose a method for sentence ordering which does not need a training phase and consequently a large corpus for learning. To this end, we generate sentence embedding using BERT pre-trained model and measure sentence similarity using cosine similarity score. We suggest this score as an indicator of sequential events' level of coherence. We finally sort the sentences through brute-force search to maximize overall similarities of the sequenced sentences. Our proposed method outperformed other baselines on ROCStories, a corpus of 5-sentence human-made stories. The method is specifically more efficient than neural network-based methods when no huge corpus is available. Among other advantages of this method are its interpretability and needlessness to linguistic knowledge.

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

↑