com.intel.hadoop.graphbuilder.demoapps.wikipedia.docwordgraph
Class TransformToTFIDF

java.lang.Object
  extended by com.intel.hadoop.graphbuilder.demoapps.wikipedia.docwordgraph.TransformToTFIDF

public class TransformToTFIDF
extends java.lang.Object

A runnable class that transforms a word count value into tfidf value on the edge.

Author:
Haijie Gu

Nested Class Summary
static class TransformToTFIDF.Dividefunc
          f : x * y -> x / y
static class TransformToTFIDF.FloatCountFunc
          f : x * y -> y + 1
static class TransformToTFIDF.IDFfunc
          f : tf * df -> tfidf
static class TransformToTFIDF.Sumfunc
          f : x * y -> x + y
 
Constructor Summary
TransformToTFIDF()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformToTFIDF

public TransformToTFIDF()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        javassist.NotFoundException,
                        java.lang.InstantiationException,
                        java.lang.IllegalAccessException,
                        javassist.CannotCompileException
Throws:
java.io.IOException
javassist.NotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
javassist.CannotCompileException