arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.07290cs.DB
收藏

优化用于文本复用分析的数据科学系统

Optimizing a Data Science System for Text Reuse Analysis

Ananth Mahadevan, Michael Mathioudakis, Eetu Mäkelä, Mikko Tolonen

AI总结:

本文以ReceptionReader系统为例,通过对比Apache Spark、MariaDB Aria和Columnstore在不同工作负载下的延迟、存储与计算成本,得出Aria是文本复用分析最优框架、Spark在流水线各阶段不可替代的结论。

摘要:

文本复用是人文学科研究中具有根本重要性的方法论要素:在不同文献中逐字或改述重现的文本片段,为研究思想的历史传播与演变提供了宝贵信息。大规模现代数字化语料库使得跨越数个世纪的文本集合联合分析成为可能,并能够检测传统小规模分析无法发现的大规模模式。为使这一机遇得以实现,有必要开发高效的数据科学系统来执行相应的分析任务。本文分享了来自ReceptionReader系统的见解,该系统用于分析大型历史语料库中的文本复用。该系统建立在来自18世纪文本大型数字化语料库的数十亿条文本复用实例之上。其主要功能是执行下游文本复用分析任务,例如查找源自特定文章的复用内容,或从一组文档中识别被复用最多的引文,每个任务都以数据库查询的形式表达。为本文目的,我们讨论了相关设计选择,包括不同的数据库规范化级别和查询执行框架,如分布式数据处理(Apache Spark)、索引行存储引擎(MariaDB Aria)和压缩列存储引擎(MariaDB Columnstore)。此外,我们针对不同工作负载,使用多种相关指标(延迟、存储大小和计算成本)进行了广泛评估,并提供了从所观察到的权衡以及在我们环境中涌现出的最优选择中获得的见解。总之,我们的结果表明:(1)对于与文本复用分析最相关的工作负载,MariaDB Aria框架成为整体最优选择;(2)大数据处理(Apache Spark)在系统流水线的所有处理阶段中都是不可替代的。

英文摘要:

Text reuse is a methodological element of fundamental importance in humanities research: pieces of text that re-appear across different documents, verbatim or paraphrased, provide invaluable information about the historical spread and evolution of ideas. Large modern digitized corpora enable the joint analysis of text collections that span entire centuries and the detection of large-scale patterns, impossible to detect with traditional small-scale analysis. For this opportunity to materialize, it is necessary to develop efficient data science systems that perform the corresponding analysis tasks. In this paper, we share insights from ReceptionReader, a system for analyzing text reuse in large historical corpora. The system is built upon billions of instances of text reuses from large digitized corpora of 18th-century texts. Its main functionality is to perform downstream text reuse analysis tasks, such as finding reuses that stem from a given article or identifying the most reused quotes from a set of documents, with each task expressed as a database query. For the purposes of the paper, we discuss the related design choices including various database normalization levels and query execution frameworks, such as distributed data processing (Apache Spark), indexed row store engine (MariaDB Aria), and compressed column store engine (MariaDB Columnstore). Moreover, we present an extensive evaluation with various metrics of interest (latency, storage size, and computing costs) for varying workloads, and we offer insights from the trade-offs we observed and the choices that emerged as optimal in our setting. In summary, our results show that (1) for the workloads that are most relevant to text-reuse analysis, the MariaDB Aria framework emerges as the overall optimal choice, (2) big data processing (Apache Spark) is irreplaceable for all processing stages of the system's pipeline.

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

↑