|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcic.wsd.testing.Summary
public class Summary
Class containing results from a single test over a single file.
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 |
---|
int[] counts
double[] hits
int[] attempts
java.util.HashMap<java.lang.String,int[]> decisionLemmas
Constructor Detail |
---|
public Summary(java.util.ArrayList<Decision> decisions)
decisions
- Decisions made by a single approach.Method Detail |
---|
public java.util.HashMap<java.lang.String,int[]> getDecisionLemmas()
private void extractLemmas(Decision decision)
decision
- The target decision.private void increaseCounter(int[] counter, java.lang.String pos)
counter
- The counter array to increase to.pos
- The POS counter to increase to.private void increaseCounter(double[] counter, java.lang.String pos, double score)
counter
- The counter array to increase to.pos
- The POS counter to increase to.public int[] getCounts()
public double[] getHits()
public int[] getAttempts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |