摘 要:在大数据背景下,数据膨胀的速度已经远远超出了人工分析的能力范围,因此,如何在大数据时代构建热词发现与可视化机制尤为紧迫和重要。本文通过研究Hadoop大数据平台下的MapReduce计算框架和TF-IDF算法,给出了TF-IDF算法在Hadoop分布式并行化计算平台下的具体实现,并以此并行化算法作为大数据架构下热词发现技术的核心算法,然后利用可视化工具对结果进行分析处理。结果表明,TF-IDF并行化算法可以较好地发现大规模数据量中的热点词汇;与传统单机下的算法相比,该算法处理效率更高。
关键词:Hadoop;TF-IDF并行化;热词发现;可视化
中图分类号:TP391 文献标识码:A
Abstract:The speed of data expansion is far beyond the ability of artificial analysis in the era of big data.Therefore,it is particularly urgent and important how to build hot word discovery and visualization mechanism.By studying the MapReduce computing framework and TF-IDF algorithm under the Hadoop platform,this paper gives the concrete implementation of the TF-IDF algorithm under the Hadoop distributed parallel computing platform,and uses this parallel algorithm as the core algorithm of the hot word discovery technology based on the big data architecture,and then uses the visualization tool to display and analyze the results.The results show that the TF-IDF parallelization algorithm can find the hot words in large amount of data much better.Compared with traditional single-machine algorithms,this algorithm is more efficient.
Keywords:Hadoop;TF-IDF parallelization;hot word discovery;visualization
1 引言(Introduction)
大数据时代,数据膨胀的速度已经远远超出了人工分析的能力范围。要从这些庞杂的数据中获取有效信息更是难上加难。如何能够简单、快速并且有效地得知人们感兴趣的内容是一个重要的问题。热词发现作为近年来的一个研究热点,不失为一个切实可行的解决方案。因为热词[1]往往能够反映一个国家、一个地区在一个时期人们普遍关注的问题和事物,具有时代特征,所以及时准确地发现当前热点信息并进行整理分析对于了解民意动向、分析舆情走势十分重要。其结果不仅为政府和有关机构及时了解并处理重大社会热点问题提供很大的参考价值,也为广大人民群众能够在信息爆炸时代里了解社会热点提供了快速而有效的方法[2]。
本文通过研究Hadoop大数据平台下的MapReduce计算框架和TF-IDF算法,给出了TF-IDF算法在Hadoop分布式并行化计算平台下的具体实现,并以此并行化算法作为大数据架构下热词发现技术的核心算法,然后利用可视化工具R语言[3]对结果进行分析处理。……