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

java.lang.Object
  extended by uk.ac.shef.dcs.oak.jate.core.feature.AbstractFeatureBuilder
Direct Known Subclasses:
FeatureBuilderCorpusTermFrequency, FeatureBuilderCorpusTermFrequencyMultiThread, FeatureBuilderDocumentTermFrequency, FeatureBuilderDocumentTermFrequencyMultiThread, FeatureBuilderRefCorpusTermFrequency, FeatureBuilderTermNest, FeatureBuilderTermNestMultiThread

public abstract class AbstractFeatureBuilder
extends java.lang.Object

Feature builder that builds a feature from a GlobalIndex


Field Summary
protected  Normalizer _normaliser
           
protected  TermFreqCounter _termFreqCounter
           
protected  WordCounter _wordCounter
           
 
Constructor Summary
AbstractFeatureBuilder(TermFreqCounter counter1, WordCounter counter2, Normalizer normaliser)
          Creates an instance
 
Method Summary
abstract  AbstractFeature build(GlobalIndex index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_termFreqCounter

protected TermFreqCounter _termFreqCounter

_normaliser

protected Normalizer _normaliser

_wordCounter

protected WordCounter _wordCounter
Constructor Detail

AbstractFeatureBuilder

public AbstractFeatureBuilder(TermFreqCounter counter1,
                              WordCounter counter2,
                              Normalizer normaliser)
Creates an instance

Parameters:
counter1 - an instance of term frequency counter
counter2 - an instance of word counter
normaliser - an instance of Normalizer, which returns a candidate term to its canonical form
Method Detail

build

public abstract AbstractFeature build(GlobalIndex index)
                               throws JATEException
Throws:
JATEException