iglu.ir
Class OrderVectorCreator

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

public class OrderVectorCreator
extends AbstractVectorCreator

Sets keyword scores based on the order of word occurance.

Author:
Travis Bauer, Ryan Scherle

Field Summary
 
Fields inherited from class iglu.ir.AbstractVectorCreator
 
Constructor Summary
OrderVectorCreator()
          Creates an OrderVectorCreator.
 
Method Summary
 TermVector getVector(Document d)
          Sets keyword scores based on the order of word occurance.
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

OrderVectorCreator

public OrderVectorCreator()
Creates an OrderVectorCreator. This class is always linearly scaled so the resultant vectors have

Method Detail

getVector

public TermVector getVector(Document d)
Sets keyword scores based on the order of word occurance. Each word's rank is based on the position in which it first appears. 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.