public abstract class AbstractWordAssociationTest extends Object implements WordAssociationTest
SemanticSpace on a
WordSimilarityEvaluation test.| Modifier and Type | Field and Description |
|---|---|
protected Map<Pair<String>,Double> |
wordPairToHumanJudgement
A mapping from a word pair to the human association judgement for it
|
| Constructor and Description |
|---|
AbstractWordAssociationTest(Map<Pair<String>,Double> wordPairToHumanJudgement) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Double |
computeAssociation(SemanticSpace sspace,
String word1,
String word2)
Returns the association of the two words on a scale of 0 to 1.
|
protected double |
computeScore(double[] humanScores,
double[] compScores)
Returns the correlation between the computer generated scores and the
human evaluated scores.
|
WordAssociationReport |
evaluate(SemanticSpace sspace)
Evaluates the performance of a given
SemanticSpace on a given
WordSimilarityEvaluation using the provided similarity metric. |
protected abstract double |
getHighestScore()
Returns the highest score possible for human judgments.
|
protected abstract double |
getLowestScore()
Returns the lowest score possible for human judgments.
|
public WordAssociationReport evaluate(SemanticSpace sspace)
SemanticSpace on a given
WordSimilarityEvaluation using the provided similarity metric.
Returns a WordSimilarityReport detailing the performance, with
similarity scores scaled by the lowest and highest human based similarity
ratings.evaluate in interface WordAssociationTestsspace - The SemanticSpace to test againstWordSimilarityReport detailing the performanceprotected double computeScore(double[] humanScores,
double[] compScores)
protected abstract double getLowestScore()
protected abstract double getHighestScore()
protected abstract Double computeAssociation(SemanticSpace sspace, String word1, String word2)
null if either word1 or word2 are not in the semantic spaceCopyright © 2012. All Rights Reserved.