public class VisualClassifier
extends java.lang.Object
Constructor and Description |
---|
VisualClassifier(java.lang.String trainfile,
int classindex)
Creates the classifier and trains it with the given training ARFF file.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
classifyArea(Area area) |
void |
classifyTree(Area root,
FeatureExtractor features)
Classifies the areas in an area tree.
|
java.lang.String |
getClassName(int index) |
public VisualClassifier(java.lang.String trainfile, int classindex)
trainfile
- path to the training ARFF file. Use the res:
prefix for denoting
classpath resources (e.g. res:train.arff
).classindex
- index of the class attribute in the ARFF filepublic void classifyTree(Area root, FeatureExtractor features)
root
- the root node of the area treepublic java.lang.String classifyArea(Area area)
public java.lang.String getClassName(int index)