iglu.ir
Class FrequencyVectorCreator

java.lang.Object
  |
  +--iglu.ir.AbstractVectorCreator
        |
        +--iglu.ir.FrequencyVectorCreator
All Implemented Interfaces:
java.io.Serializable, VectorCreator

public class FrequencyVectorCreator
extends AbstractVectorCreator
implements java.io.Serializable

Sets keyword scores based on the frequency of the words.

Author:
Travis Bauer, Ryan Scherle
See Also:
Serialized Form

Field Summary
 
Fields inherited from class iglu.ir.AbstractVectorCreator
 
Constructor Summary
FrequencyVectorCreator()
           
 
Method Summary
 TermVector getVector(Document d)
          Sets keyword scores based on the frequency of the words.
static void main(java.lang.String[] args)
          Runs a test on this class.
 
Methods inherited from class iglu.ir.AbstractVectorCreator
cleanUp, setDictionary, setLinearlyScale, setMaxSize, setNormalize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrequencyVectorCreator

public FrequencyVectorCreator()
Method Detail

getVector

public TermVector getVector(Document d)
Sets keyword scores based on the frequency of the words. The keyword vector is normalized, so the resulting scores are in the range [0.0,1.0]. All existing keywords will be reweighted, but keywords that have been stopworded are not replaced.

Specified by:
getVector in interface VectorCreator

main

public static void main(java.lang.String[] args)
Runs a test on this class.