|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.console.summarySingleFileEvaluator
public class summarySingleFileEvaluator
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 |
|---|
public summarySingleFileEvaluator(java.lang.String sDocumentModelClassName,
java.lang.String sComparatorClassName,
int iMinNGramRank,
int iMaxNGramRank,
int iNGramDist)
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.public summarySingleFileEvaluator()
| Method Detail |
|---|
public double doCompare(java.lang.String sSummaryTextFile,
java.util.Set<java.lang.String> ssModelFiles)
sSummaryTextFile - The filename of the text file to use.ssModelFiles - A set of strings, containing the filenames of the model
texts.
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)
sSummaryTextFile - The filename of the text file to use.ssModelFiles - A set of strings, containing the filenames of the model
texts.
public static void main(java.lang.String[] args)
args - The command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||