gr.demokritos.iit.jinsect.console
Class summarySingleFileEvaluator

java.lang.Object
  extended by 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)
          Performs comparison between a (summary) text file and a set of model (summary) text files.
static double doGraphCompareToSet(java.lang.String sSummaryTextFile, java.util.Set<java.lang.String> ssModelFiles, java.lang.String sGraphModelClassName, java.lang.String sComparatorClassName, int iMinNGramRank, int iMaxNGramRank, int iNGramDist)
          Performs comparison between the graph representation of a (summary) text file and a set of (model summary) text files.
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
 

Constructor Detail

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()
Method Detail

doCompare

public double doCompare(java.lang.String sSummaryTextFile,
                        java.util.Set<java.lang.String> ssModelFiles)
Performs comparison between a (summary) text file and a set of model (summary) text files. The comparison result is the average similarity of the given text to the individuals of the text set.

Parameters:
sSummaryTextFile - The filename of the text file to use.
ssModelFiles - A set of strings, containing the filenames of the model texts.
Returns:
A double value indicating the average value similarity between the given text and the model texts.

doGraphCompareToSet

public static double doGraphCompareToSet(java.lang.String sSummaryTextFile,
                                         java.util.Set<java.lang.String> ssModelFiles,
                                         java.lang.String sGraphModelClassName,
                                         java.lang.String sComparatorClassName,
                                         int iMinNGramRank,
                                         int iMaxNGramRank,
                                         int iNGramDist)
Performs comparison between the graph representation of a (summary) text file and a set of (model summary) text files. The comparison result is the similarity of the given text to the union of the representation of the texts in the text set.

Parameters:
sSummaryTextFile - The filename of the text file to use.
ssModelFiles - A set of strings, containing the filenames of the model texts.
Returns:
A double value indicating the normalized value similarity between the given text representation and the model texts set representation.

main

public static void main(java.lang.String[] args)
Main function for usage from the command line.

Parameters:
args - The command line arguments