uk.ac.shef.dcs.oak.jate.core.algorithm
Class FrequencyAlgorithm

java.lang.Object
  extended by uk.ac.shef.dcs.oak.jate.core.algorithm.FrequencyAlgorithm
All Implemented Interfaces:
Algorithm

public class FrequencyAlgorithm
extends java.lang.Object
implements Algorithm

Simple algorithm that ranks terms by their frequency in the corpus


Constructor Summary
FrequencyAlgorithm()
           
 
Method Summary
 Term[] execute(AbstractFeatureWrapper store)
          Execute the algorithm by analysing the features stored in the AbstractFeatureWrapper and return terms extracted and sorted by their relevance
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrequencyAlgorithm

public FrequencyAlgorithm()
Method Detail

execute

public Term[] execute(AbstractFeatureWrapper store)
               throws JATEException
Description copied from interface: Algorithm
Execute the algorithm by analysing the features stored in the AbstractFeatureWrapper and return terms extracted and sorted by their relevance

Specified by:
execute in interface Algorithm
Returns:
Throws:
JATEException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object