public abstract class AbstractNormedWordPrimingTest extends Object implements NormedWordPrimingTest
Modifier and Type | Class and Description |
---|---|
class |
AbstractNormedWordPrimingTest.SimpleNormedWordPrimingReport
A simple
NormedWordPrimingReport that serves as a struct. |
Modifier and Type | Field and Description |
---|---|
protected Set<NormedPrimingQuestion> |
normedWordQuestions
A mapping from a word pair to the human association judgement for it
|
Constructor and Description |
---|
AbstractNormedWordPrimingTest(Set<NormedPrimingQuestion> primes) |
Modifier and Type | Method and Description |
---|---|
protected abstract double |
computeStrength(SemanticSpace sspace,
String word1,
String word2)
Returns the association of the two words on a scale of 0 to 1.
|
NormedWordPrimingReport |
evaluate(SemanticSpace sspace)
Evaluates the performance of a given
SemanticSpace on a given
WordSimilarityEvaluation using the provided similarity metric. |
protected final Set<NormedPrimingQuestion> normedWordQuestions
public AbstractNormedWordPrimingTest(Set<NormedPrimingQuestion> primes)
wordPairToHumanJudgement
- A mapping from a word pair to the human
association judgement for itpublic NormedWordPrimingReport 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 NormedWordPrimingTest
sspace
- The SemanticSpace
to test againstWordSimilarityReport
detailing the performanceprotected abstract double computeStrength(SemanticSpace sspace, String word1, String word2)
word1
and word2
Copyright © 2012. All Rights Reserved.