gr.demokritos.iit.jinsect.console
Class summarySingleFileEvaluator
java.lang.Object
gr.demokritos.iit.jinsect.console.summarySingleFileEvaluator
public class summarySingleFileEvaluator
- extends java.lang.Object
This class provides a facility to compare a text with a set of model texts
returning the set of results of the individual comparisons and an overall
similarity measure.
Constructor Summary |
summarySingleFileEvaluator()
|
summarySingleFileEvaluator(java.lang.String sDocumentModelClassName,
java.lang.String sComparatorClassName,
int iMinNGramRank,
int iMaxNGramRank,
int iNGramDist)
Creates a new instance of summarySingleFileEvaluator, given a single
summary text and a set of model texts. |
Method Summary |
double |
doCompare(java.lang.String sSummaryTextFile,
java.util.Set<java.lang.String> ssModelFiles)
|
static void |
main(java.lang.String[] args)
Main function for usage from the command line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
summarySingleFileEvaluator
public summarySingleFileEvaluator(java.lang.String sDocumentModelClassName,
java.lang.String sComparatorClassName,
int iMinNGramRank,
int iMaxNGramRank,
int iNGramDist)
- Creates a new instance of summarySingleFileEvaluator, given a single
summary text and a set of model texts.
- Parameters:
sDocumentModelClassName
- The document model class name.sComparatorClassName
- The comparator class name.iMinNGramRank
- The min n-gram to take into account.iMaxNGramRank
- The max n-gram to take into account.iNGramDist
- The max distance to take into account for neighbourhood.
summarySingleFileEvaluator
public summarySingleFileEvaluator()
doCompare
public double doCompare(java.lang.String sSummaryTextFile,
java.util.Set<java.lang.String> ssModelFiles)
main
public static void main(java.lang.String[] args)
- Main function for usage from the command line.
- Parameters:
args
- The command line arguments