cic.wsd.testing
Class Summary

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

public class Summary
extends java.lang.Object

Class containing results from a single test over a single file.

Author:
Francisco Viveros-Jiménez

Field Summary
(package private)  int[] attempts
          Number of attempts over {nouns, verbs, adjectives, adverbs, open-class words}
(package private)  int[] counts
          Number of {nouns, verbs, adjectives, adverbs, open-class words}
(package private)  java.util.HashMap<java.lang.String,int[]> decisionLemmas
          Lemmas used for making decisions. int[] contains the index of the problem solved.
(package private)  double[] hits
          Number of correct answers over {nouns, verbs, adjectives, adverbs, open-class words}
 
Constructor Summary
Summary(java.util.ArrayList<Decision> decisions)
          Summarizes the decisions taken by an algorithm.
 
Method Summary
private  void extractLemmas(Decision decision)
          Extract the lemmas used for making a decision.
 int[] getAttempts()
          Returns the attemps.
 int[] getCounts()
          Returns the counts.
 java.util.HashMap<java.lang.String,int[]> getDecisionLemmas()
          The lemmas used for making decisions.
 double[] getHits()
          Returns the hits.
private  void increaseCounter(double[] counter, java.lang.String pos, double score)
          Utility method for increasing a counter.
private  void increaseCounter(int[] counter, java.lang.String pos)
          Utility method for increasing a counter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counts

int[] counts
Number of {nouns, verbs, adjectives, adverbs, open-class words}


hits

double[] hits
Number of correct answers over {nouns, verbs, adjectives, adverbs, open-class words}


attempts

int[] attempts
Number of attempts over {nouns, verbs, adjectives, adverbs, open-class words}


decisionLemmas

java.util.HashMap<java.lang.String,int[]> decisionLemmas
Lemmas used for making decisions. int[] contains the index of the problem solved.

Constructor Detail

Summary

public Summary(java.util.ArrayList<Decision> decisions)
Summarizes the decisions taken by an algorithm.

Parameters:
decisions - Decisions made by a single approach.
Method Detail

getDecisionLemmas

public java.util.HashMap<java.lang.String,int[]> getDecisionLemmas()
The lemmas used for making decisions.

Returns:
decisionLemmas

extractLemmas

private void extractLemmas(Decision decision)
Extract the lemmas used for making a decision.

Parameters:
decision - The target decision.

increaseCounter

private void increaseCounter(int[] counter,
                             java.lang.String pos)
Utility method for increasing a counter.

Parameters:
counter - The counter array to increase to.
pos - The POS counter to increase to.

increaseCounter

private void increaseCounter(double[] counter,
                             java.lang.String pos,
                             double score)
Utility method for increasing a counter.

Parameters:
counter - The counter array to increase to.
pos - The POS counter to increase to.

getCounts

public int[] getCounts()
Returns the counts.

Returns:
counts

getHits

public double[] getHits()
Returns the hits.

Returns:
hits

getAttempts

public int[] getAttempts()
Returns the attemps.

Returns:
attempts