iglu.ir
Class PhraseFrequencyVectorCreator

java.lang.Object
  |
  +--iglu.ir.AbstractVectorCreator
        |
        +--iglu.ir.PhraseFrequencyVectorCreator
All Implemented Interfaces:
VectorCreator

public class PhraseFrequencyVectorCreator
extends AbstractVectorCreator

Sets phrase scores based on the frequency of bigrams.

Author:
Travis Bauer, Ryan Scherle

Field Summary
 
Fields inherited from class iglu.ir.AbstractVectorCreator
 
Constructor Summary
PhraseFrequencyVectorCreator()
           
 
Method Summary
 TermVector getVector(Document d)
          Sets phrase scores based on the frequency of bigrams.
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

PhraseFrequencyVectorCreator

public PhraseFrequencyVectorCreator()
Method Detail

getVector

public TermVector getVector(Document d)
Sets phrase scores based on the frequency of bigrams. 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.


main

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