RunningMapReduceExampleTFIDFhadoopclusternetThis document describes how to run the TFIDF MapReduce example against ascii books.T

RunningMapReduceExampleTFIDFhadoopclusternetThis document describes how to run the TFIDF MapReduce example against ascii books.T,第1张

RunningMapReduceExampleTFIDF - hadoop-clusternet - This document describes how to run the TF-IDF MapReduce example against ascii books. - This project is for those who wants to experiment hadoop as a skunkworks in a small cluster (1-10 nodes) - Google Project Hosting

Introduction

The first application written with Clusternet was an example to produce weights for terms in a corpus of ascii books. The example is developed using 3 steps to transform the results in separate MapReduce Jobs. This example can actually be run in any Hadoop cluster.

TF-IDF Algorithm

The term frequency, inverted document frequency is a well-known information retrieval algorithm for giving weights for terms of documents. It is important to note that the algorithm must not consider stop words, and for this reason, we will be using filtering the terms in the input for the algorithm with the Google Stop words. The algorithm is described as follows:

weight(t,d) = tf * idf
tf = # terms t in (d) / total # of terms in (d) = tf

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/2083005.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存