public class Evaluation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
Evaluation.Attribute |
static class |
Evaluation.Element |
private static class |
Evaluation.Model |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,ClusteredScoreMap<java.lang.String>> |
modelMap |
private static java.util.List<Evaluation.Model> |
models |
Constructor and Description |
---|
Evaluation() |
Modifier and Type | Method and Description |
---|---|
static void |
add(java.io.File f)
add a model to the evaluation set
|
java.util.Set<java.lang.String> |
getModelNames()
produce all model names
|
ClusteredScoreMap<java.lang.String> |
getScores(java.lang.String modelName)
calculate the scores for a model
the scores is a attribute/count map which count how often a specific attribute was found
|
static void |
main(java.lang.String[] args) |
void |
match(Evaluation.Element element,
char[] content) |
void |
match(Evaluation.Element element,
java.lang.CharSequence content)
match some content within a specific element
this will increase statistic counters for models if a model matches
|
java.lang.String |
toString() |
private static java.util.List<Evaluation.Model> models
private final java.util.Map<java.lang.String,ClusteredScoreMap<java.lang.String>> modelMap
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> getModelNames()
public ClusteredScoreMap<java.lang.String> getScores(java.lang.String modelName)
modelName
- public static void add(java.io.File f) throws java.io.IOException
f
- java.io.IOException
public void match(Evaluation.Element element, java.lang.CharSequence content)
element
- - the element where a matching is madecontent
- - the content of the element which shall be matchedpublic void match(Evaluation.Element element, char[] content)
public static void main(java.lang.String[] args)