arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1207.4371cs.IRcs.DBcs.DC
收藏

在MapReduce中计算n-Gram统计量

Computing n-Gram Statistics in MapReduce

Klaus Berberich, Srikanta Bedathur

摘要:

关于n-gram的统计(即,文本文档或其它字符串数据中的连续单词或其它标记的序列)是信息检索和自然语言处理中的重要构件。在这项工作中,我们研究了如何利用MapReduce进行分布式数据处理来有效地计算n-gram统计数据,这些统计数据可选地受到最大n-gram长度和最小收集频率的限制。我们描述了不同的算法,从单词计数的扩展,通过基于Apriori原理的方法,到一种依赖于排序和聚合后缀的新方法Suffix-σ。我们研究我们的方法可能的扩展,以支持最大性/封闭性的概念,并执行聚合发生计数之外。假设Hadoop作为一个具体的MapReduce实现,我们提供了一个有效的方法实现的见解。在《纽约时报》注释语料库(The New York Times Annotated Corpus)和Cocktail Web 09上进行的大量实验揭示了这些方法的相对优势和利弊。

英文摘要:

Statistics about n-grams (i.e., sequences of contiguous words or other tokens in text documents or other string data) are an important building block in information retrieval and natural language processing. In this work, we study how n-gram statistics, optionally restricted by a maximum n-gram length and minimum collection frequency, can be computed efficiently harnessing MapReduce for distributed data processing. We describe different algorithms, ranging from an extension of word counting, via methods based on the Apriori principle, to a novel method Suffix-σthat relies on sorting and aggregating suffixes. We examine possible extensions of our method to support the notions of maximality/closedness and to perform aggregations beyond occurrence counting. Assuming Hadoop as a concrete MapReduce implementation, we provide insights on an efficient implementation of the methods. Extensive experiments on The New York Times Annotated Corpus and ClueWeb09 expose the relative benefits and trade-offs of the methods.

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

↑