阅读 72

RunningMapReduceExampleTFIDF hadoopclusternet This document describes how to run the TFIDF MapReduce example against ascii books. This project is for those who wants to experiment hadoop as a skunkworks in a small cluster (110 nodes) Google Pro

  • 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



文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐