public class InfoContentEvaluatorImpl extends Object implements InfoContentEvaluator
The information content of each concept is stored in the feature_rank table. The related record in the feature_eval table has
INFOCONTENT
Constructor and Description |
---|
InfoContentEvaluatorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
evaluateCorpusInfoContent(String freqQuery,
String corpusName,
String conceptGraphName,
String conceptSetName)
calculate information content for all concepts
|
ClassifierEvaluationDao |
getClassifierEvaluationDao() |
ConceptDao |
getConceptDao() |
DataSource |
getDataSource(DataSource ds) |
Map<String,Double> |
getFrequencies(String freqQuery)
get the frequency of each term in the corpus.
|
static void |
main(String[] args) |
void |
setClassifierEvaluationDao(ClassifierEvaluationDao classifierEvaluationDao) |
void |
setConceptDao(ConceptDao conceptDao) |
void |
setDataSource(DataSource ds) |
public static void main(String[] args) throws IOException
args
- IOException
public void evaluateCorpusInfoContent(String freqQuery, String corpusName, String conceptGraphName, String conceptSetName)
InfoContentEvaluator
evaluateCorpusInfoContent
in interface InfoContentEvaluator
public ClassifierEvaluationDao getClassifierEvaluationDao()
public ConceptDao getConceptDao()
public DataSource getDataSource(DataSource ds)
public Map<String,Double> getFrequencies(String freqQuery)
getFrequencies
in interface InfoContentEvaluator
freqQuery
- query returns 2 columns. 1st column - concept id (string), 2nd
column - frequency (double)public void setClassifierEvaluationDao(ClassifierEvaluationDao classifierEvaluationDao)
public void setConceptDao(ConceptDao conceptDao)
public void setDataSource(DataSource ds)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.