|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcic.wsd.testing.Test
public class Test
Class for setting a test of a disambiguation method over a set of SEMCOR documents.
Field Summary | |
---|---|
(package private) WSDAlgorithm |
algorithm
Algorithm to be tested. |
(package private) java.util.ArrayList<java.util.ArrayList<Decision>> |
answers
Answers obtained in each document. |
(package private) WSDAlgorithm |
backoff
Disambiguation algorithm used as a back-off strategy. |
(package private) java.util.ArrayList<Condition> |
conditions
Conditions for retrieving the window. |
(package private) java.util.ArrayList<Input> |
docs
The set of SEMCOR documents used as test-bed. |
(package private) java.lang.String |
KNSources
Samples loaded. |
(package private) java.lang.String |
retrievedSenses
Pruning method used. |
(package private) java.util.ArrayList<Summary> |
summaries
Summaries of the test results obtained in each document. |
(package private) java.lang.String |
testSet
Name of the folder/file containing the tests |
(package private) WSDAlgorithm |
tie
Disambiguation algorithm used for solving ties. |
(package private) int |
windowSize
Window size to be used by the windowing method. |
Constructor Summary | |
---|---|
Test(java.util.ArrayList<Input> docs,
WSDAlgorithm algorithm,
int windowSize,
WSDAlgorithm backoff,
java.lang.String testSet,
WSDAlgorithm tie,
java.util.ArrayList<Condition> conditions,
java.lang.String retrievedSenses,
java.lang.String KNSources)
Creates a new test. |
Method Summary | |
---|---|
WSDAlgorithm |
getAlgorithm()
Returns the disambiguation algorithm used on this test. |
java.util.ArrayList<java.util.ArrayList<Decision>> |
getAnswers()
Returns the decisions made on the test runs. |
WSDAlgorithm |
getBackoff()
Returns the back-off strategy used on this test. |
java.util.ArrayList<Condition> |
getConditions()
Returns the conditions for selecting the window words. |
java.util.ArrayList<Input> |
getDocs()
Returns the test-bed used on this test. |
java.lang.String |
getKNSources()
Returns the sample sets loaded. |
java.lang.String |
getRetrievedSenses()
Returns the pruning method used. |
java.util.ArrayList<Summary> |
getSummaries()
Returns the summaries of the test runs. |
WSDAlgorithm |
getTie()
Returns the algorithm used for solving ties. |
int |
getWindowSize()
Returns the window size used on this test. |
java.util.ArrayList<java.util.ArrayList<Decision>> |
run()
Run the current test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.ArrayList<Input> docs
java.util.ArrayList<Summary> summaries
java.util.ArrayList<java.util.ArrayList<Decision>> answers
WSDAlgorithm algorithm
int windowSize
WSDAlgorithm backoff
java.lang.String testSet
WSDAlgorithm tie
java.util.ArrayList<Condition> conditions
java.lang.String retrievedSenses
java.lang.String KNSources
Constructor Detail |
---|
public Test(java.util.ArrayList<Input> docs, WSDAlgorithm algorithm, int windowSize, WSDAlgorithm backoff, java.lang.String testSet, WSDAlgorithm tie, java.util.ArrayList<Condition> conditions, java.lang.String retrievedSenses, java.lang.String KNSources)
docs
- The SEMCOR documents used as test-bed.algorithm
- Disambiguation method to test to.windowSize
- Window size to be used by the windowing method.backoff
- Disambiguation algorithm to be used as a back-off strategy. Use null to indicate no back-off.testSet
- Name of the folder/file containing the tests.tie
- Tie solving strategy.conditions
- Conditions for retrieving window words from context.retrievedSenses
- Pruning method used.KNSources
- Loaded samples.Method Detail |
---|
public java.util.ArrayList<Input> getDocs()
public java.util.ArrayList<Summary> getSummaries()
public java.util.ArrayList<java.util.ArrayList<Decision>> getAnswers()
public WSDAlgorithm getAlgorithm()
public WSDAlgorithm getBackoff()
public int getWindowSize()
public java.util.ArrayList<java.util.ArrayList<Decision>> run()
public java.lang.String getKNSources()
public java.lang.String getRetrievedSenses()
public WSDAlgorithm getTie()
public java.util.ArrayList<Condition> getConditions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |