|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.shef.dcs.oak.jate.core.feature.AbstractFeatureBuilder
uk.ac.shef.dcs.oak.jate.core.feature.FeatureBuilderRefCorpusTermFrequency
public class FeatureBuilderRefCorpusTermFrequency
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 |
---|
public FeatureBuilderRefCorpusTermFrequency(java.lang.String refStatsPath)
refStatsPath
- file path to the reference corpus statistics file. The file should store one term on a line, and in the format of:
Method Detail |
---|
public FeatureRefCorpusTermFrequency build(GlobalIndex nullValue) throws JATEException
build
in class AbstractFeatureBuilder
nullValue
- can be either an instance or null value
JATEException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |