cic.wsd.testing
Class Test

java.lang.Object
  extended by cic.wsd.testing.Test

public class Test
extends java.lang.Object

Class for setting a test of a disambiguation method over a set of SEMCOR documents.

Author:
Francisco Viveros-Jiménez

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

docs

java.util.ArrayList<Input> docs
The set of SEMCOR documents used as test-bed.


summaries

java.util.ArrayList<Summary> summaries
Summaries of the test results obtained in each document.


answers

java.util.ArrayList<java.util.ArrayList<Decision>> answers
Answers obtained in each document.


algorithm

WSDAlgorithm algorithm
Algorithm to be tested.


windowSize

int windowSize
Window size to be used by the windowing method.


backoff

WSDAlgorithm backoff
Disambiguation algorithm used as a back-off strategy. Use null to indicate no back-off.


testSet

java.lang.String testSet
Name of the folder/file containing the tests


tie

WSDAlgorithm tie
Disambiguation algorithm used for solving ties. Use null for leaving the ties unsolved.


conditions

java.util.ArrayList<Condition> conditions
Conditions for retrieving the window.


retrievedSenses

java.lang.String retrievedSenses
Pruning method used.


KNSources

java.lang.String KNSources
Samples loaded.

Constructor Detail

Test

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)
Creates a new test.

Parameters:
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

getDocs

public java.util.ArrayList<Input> getDocs()
Returns the test-bed used on this test.

Returns:
docs

getSummaries

public java.util.ArrayList<Summary> getSummaries()
Returns the summaries of the test runs.

Returns:
summaries

getAnswers

public java.util.ArrayList<java.util.ArrayList<Decision>> getAnswers()
Returns the decisions made on the test runs.

Returns:
answers

getAlgorithm

public WSDAlgorithm getAlgorithm()
Returns the disambiguation algorithm used on this test.

Returns:
algorithm

getBackoff

public WSDAlgorithm getBackoff()
Returns the back-off strategy used on this test.

Returns:
backoff

getWindowSize

public int getWindowSize()
Returns the window size used on this test.

Returns:
windowSize

run

public java.util.ArrayList<java.util.ArrayList<Decision>> run()
Run the current test.

Returns:
The decisions made by the disambiguation method over the test-bed.

getKNSources

public java.lang.String getKNSources()
Returns the sample sets loaded.

Returns:
KNSources

getRetrievedSenses

public java.lang.String getRetrievedSenses()
Returns the pruning method used.

Returns:
retrievedSenses

getTie

public WSDAlgorithm getTie()
Returns the algorithm used for solving ties.

Returns:
tie

getConditions

public java.util.ArrayList<Condition> getConditions()
Returns the conditions for selecting the window words.

Returns:
conditions