info.ephyra.answerselection.filters
Class WebTermImportanceFilter.TargetGeneratorTest

java.lang.Object
  extended by info.ephyra.answerselection.filters.Filter
      extended by info.ephyra.answerselection.filters.WebTermImportanceFilter
          extended by info.ephyra.answerselection.filters.WebTermImportanceFilter.TargetGeneratorTest
Enclosing class:
WebTermImportanceFilter

private static class WebTermImportanceFilter.TargetGeneratorTest
extends WebTermImportanceFilter


Nested Class Summary
 
Nested classes/interfaces inherited from class info.ephyra.answerselection.filters.WebTermImportanceFilter
WebTermImportanceFilter.TermCounter
 
Field Summary
 
Fields inherited from class info.ephyra.answerselection.filters.WebTermImportanceFilter
event, LINEAR_LENGTH_NORMALIZATION, location, LOG_10_LENGTH_NORMALIZATION, LOG_LENGTH_NORMALIZATION, NO_NORMALIZATION, organization, person, SQUARE_ROOT_LENGTH_NORMALIZATION, TEST_TARGET_GENERATION
 
Constructor Summary
WebTermImportanceFilter.TargetGeneratorTest(int normalizationMode)
           
 
Method Summary
 java.util.HashMap<java.lang.String,WebTermImportanceFilter.TermCounter> getTermCounters(java.lang.String[] targets)
          fetch the term frequencies in the top X result snippets of a web search for some target
 
Methods inherited from class info.ephyra.answerselection.filters.WebTermImportanceFilter
addTermCounters, apply, getCountSum, getMaxCount, getTargets, main, sumDiff
 
Methods inherited from class info.ephyra.answerselection.filters.Filter
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTermImportanceFilter.TargetGeneratorTest

WebTermImportanceFilter.TargetGeneratorTest(int normalizationMode)
Method Detail

getTermCounters

public java.util.HashMap<java.lang.String,WebTermImportanceFilter.TermCounter> getTermCounters(java.lang.String[] targets)
Description copied from class: WebTermImportanceFilter
fetch the term frequencies in the top X result snippets of a web search for some target

Specified by:
getTermCounters in class WebTermImportanceFilter
Parameters:
targets - an array of strings containing the targets
Returns:
a HashMap mapping the terms in the web serach results to their frequency in the snippets