uk.ac.shef.dcs.oak.jate.core.feature
Class FeatureBuilderRefCorpusTermFrequency

java.lang.Object
  extended by uk.ac.shef.dcs.oak.jate.core.feature.AbstractFeatureBuilder
      extended by uk.ac.shef.dcs.oak.jate.core.feature.FeatureBuilderRefCorpusTermFrequency

public class FeatureBuilderRefCorpusTermFrequency
extends AbstractFeatureBuilder

A specific type of feature builder that builds an instance of FeatureRefCorpusTermFrequency. This is a dummy class which reads the data from a text file which stores information as:
[freq_in_corpus] [term]


Field Summary
 
Fields inherited from class uk.ac.shef.dcs.oak.jate.core.feature.AbstractFeatureBuilder
_normaliser, _termFreqCounter, _wordCounter
 
Constructor Summary
FeatureBuilderRefCorpusTermFrequency(java.lang.String refStatsPath)
          Default constructor
 
Method Summary
 FeatureRefCorpusTermFrequency build(GlobalIndex nullValue)
          Dummy method which does nothing with the GlobalIndexMem instance but load statistics and creates and instance of FeatureRefCorpusTermFrequency from the file specified in the constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureBuilderRefCorpusTermFrequency

public FeatureBuilderRefCorpusTermFrequency(java.lang.String refStatsPath)
Default constructor

Parameters:
refStatsPath - file path to the reference corpus statistics file. The file should store one term on a line, and in the format of:
[freq_in_ref_corpus] [term]
Any terms with frequency < 2 will be ignored.
Method Detail

build

public FeatureRefCorpusTermFrequency build(GlobalIndex nullValue)
                                    throws JATEException
Dummy method which does nothing with the GlobalIndexMem instance but load statistics and creates and instance of FeatureRefCorpusTermFrequency from the file specified in the constructor

Specified by:
build in class AbstractFeatureBuilder
Parameters:
nullValue - can be either an instance or null value
Returns:
Throws:
JATEException