|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.eval.MistakeMatrix
public class MistakeMatrix
Stores the results of a mistake analysis performed by
MistakeAnalyzer
.
Constructor Summary | |
---|---|
MistakeMatrix()
Creates a new instance. |
Method Summary | |
---|---|
void |
add(Mistake mistake)
Adds a new mistake to this matrix. |
void |
printMistakes(Writer writer)
Prints the list of mistakes encountered by this instance. |
String |
toString()
Returns a compact string representation of this object. |
UnmodifiableSortedBag |
viewExactConfusionMatrix()
Returns a confusion matrix that counts how often each type was confused with any other type. |
UnmodifiableSortedBag |
viewMistakeCombinationCount()
Returns a count of the different mistakes combinations that occurred, using the flattened string
representation. |
UnmodifiableSortedBag |
viewMistakeCount()
Returns a count of the different types of Mistake.MistakeTypes
that occurred. |
UnmodifiableSortedBag |
viewRoughConfusionMatrix()
Returns A confusion matrix that counts how often each type was confused with any other type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MistakeMatrix()
Method Detail |
---|
public void add(Mistake mistake)
mistake
- the mistakepublic void printMistakes(Writer writer) throws IOException
Mistake.toString()
. They are grouped by source files -- each
new source file is introduced by a line containing the file name
preceded and followed by "---".
writer
- the writer to write to
IOException
- if an I/O error occurredpublic String toString()
toString
in class Object
public UnmodifiableSortedBag viewExactConfusionMatrix()
roughConfusionMatrix
. This instance only counts exact confusion
instances, where the type confusion was the only mistake that occurred.
public UnmodifiableSortedBag viewMistakeCombinationCount()
flattened
string
representation.
public UnmodifiableSortedBag viewMistakeCount()
Mistake.MistakeTypes
that occurred.
public UnmodifiableSortedBag viewRoughConfusionMatrix()
Mistake.confusionType(de.fu_berlin.ties.extract.Extraction,
de.fu_berlin.ties.extract.Extraction)
. This instance
counts any confusion instances, no matter whether other mistakes
(e.g. early or late start) occurred as well.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |