Modifier and Type | Method and Description |
---|---|
float |
TextSimilarity.directedTextSimilarity(java.lang.String text,
java.lang.String hypothesis,
DISCO disco,
DISCO.SimilarityMeasure similarityMeasure)
Compute the semantic similarity of text and hypothesis according to the
algorithm given in Jijkoun & De Rijke (2005): "Recognizing Textual Entailment
Using Lexical Similarity".
The method tests if the hypothesis is licensed by the text. |
java.lang.String[] |
DISCO.getStopwords()
Get the stopwords for this word space instance.
|
static void |
Main.main(java.lang.String[] args)
Main method.
|
float |
TextSimilarity.textSimilarity(java.lang.String text1,
java.lang.String text2,
DISCO disco,
DISCO.SimilarityMeasure similarityMeasure)
Computes the semantic similarity between the two texts as an average of
both directed text similarities.
|
Constructor and Description |
---|
ConfigFile(java.lang.String dirName)
Constructor 2: read data from file into class fields.
|
DISCO(java.lang.String idxName,
boolean loadIntoRAM)
DISCO version 2.0 allows to load a complete word space into RAM to
speed up similarity computations.
|