|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,Counter>
evaluation.AnnotationStats
public class AnnotationStats
Statistics of annotation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
senseIdToOrth
Maps: sense id -> orth of lexeme |
java.util.Map<java.lang.String,java.lang.String> |
senseIdToPos
Maps: sense id -> part of speech of lexeme |
| Constructor Summary | |
|---|---|
AnnotationStats(corpusapi.tei.TEISenseInventory dict)
Constructor |
|
| Method Summary | |
|---|---|
void |
addAnnotation(java.lang.String lexeme,
java.lang.String senseId)
Adds an annotation of chosen lexeme with chosen sense id |
int |
getAllCount()
Gets number of annotations |
int |
getAllCount(java.lang.String pos)
Gets number of annotations for given part of speech |
int |
getCountForLexeme(java.lang.String lexeme)
Gets number of annotations for lexeme |
int |
getCountForSubsense(java.lang.String lexeme,
java.lang.String subsenseId)
Returns number of annotations with particular subsense |
java.util.Set<java.lang.String> |
getLexemeSet()
Returns all lexemes |
java.util.Set<java.lang.String> |
getLexemeSet(java.lang.String pos)
Returns set of lexemes of chosen part of speech |
double |
getMfsForLexeme(java.lang.String lexeme)
Returns MFS accuracy for a lexeme |
double |
getSenseWeight(java.lang.String lexeme,
java.lang.String subsenseId)
Get the RARE value for given subsense of a lexeme |
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Double>> |
getSortedMfs()
Returns list of pairs : |
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Double>> |
getSortedMfs(java.lang.String pos)
Returns list of pairs : |
java.util.List<java.lang.String> |
getSubsensesList(java.lang.String lexeme)
Returns list of subsense ids of given lexeme |
java.lang.Double |
getTotalMFSAccuracy(java.lang.String pos)
Calculates MFS accuracy for given annotation and part of speech |
java.lang.Double |
getTotalRandomAccuracy(java.lang.String pos)
Gets random accuracy for this annotation and given part of speech |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
public java.util.Map<java.lang.String,java.lang.String> senseIdToOrth
public java.util.Map<java.lang.String,java.lang.String> senseIdToPos
| Constructor Detail |
|---|
public AnnotationStats(corpusapi.tei.TEISenseInventory dict)
dict - dictionary of senses| Method Detail |
|---|
public int getAllCount()
public int getAllCount(java.lang.String pos)
pos - part of speech
public int getCountForLexeme(java.lang.String lexeme)
lexeme -
public void addAnnotation(java.lang.String lexeme,
java.lang.String senseId)
lexeme - senseId - public java.util.Set<java.lang.String> getLexemeSet()
public java.util.Set<java.lang.String> getLexemeSet(java.lang.String pos)
pos - part of speech
public java.util.List<java.lang.String> getSubsensesList(java.lang.String lexeme)
lexeme -
public double getSenseWeight(java.lang.String lexeme,
java.lang.String subsenseId)
lexeme - subsenseId -
public int getCountForSubsense(java.lang.String lexeme,
java.lang.String subsenseId)
lexeme - chosen lexemesubsenseId - subsense of this lexeme
public double getMfsForLexeme(java.lang.String lexeme)
lexeme -
public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Double>> getSortedMfs()
public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Double>> getSortedMfs(java.lang.String pos)
pos - part of speech
public java.lang.Double getTotalRandomAccuracy(java.lang.String pos)
pos - part of speech
public java.lang.Double getTotalMFSAccuracy(java.lang.String pos)
pos - part of speech
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||