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

使用短随机片段对长法律文件进行分类

Classifying long legal documents using short random chunks

Jus Mundi

Luis Adrián Cabrera-Diego

AI总结:

本文提出基于DeBERTa V3和LSTM的法律文件分类器,通过随机片段输入和高效部署流程实现高分类精度与处理效率。

摘要:

对法律文件进行分类是一项挑战,除了其专业词汇外,有时这些文件可能非常长。这意味着将完整文件输入基于Transformer的模型进行分类可能不可行、昂贵或缓慢。因此,我们提出了一种基于DeBERTa V3和LSTM的法律文件分类器,其输入是一组48个随机选择的短片段(最大128个标记)。此外,我们还展示了其部署流程,使用Temporal,一种持久化的执行解决方案,使我们能够拥有一个可靠且稳健的处理流程。最佳模型的加权F分数为0.898,而该流程在CPU上处理100个文件的中位时间约为498秒。

英文摘要:

Classifying legal documents is a challenge, besides their specialized vocabulary, sometimes they can be very long. This means that feeding full documents to a Transformers-based models for classification might be impossible, expensive or slow. Thus, we present a legal document classifier based on DeBERTa V3 and a LSTM, that uses as input a collection of 48 randomly-selected short chunks (max 128 tokens). Besides, we present its deployment pipeline using Temporal, a durable execution solution, which allow us to have a reliable and robust processing workflow. The best model had a weighted F-score of 0.898, while the pipeline running on CPU had a processing median time of 498 seconds per 100 files.

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

↑