|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.msu.cme.rdp.classifier.rrnaclassifier.ClassifierFactory
public class ClassifierFactory
A factory to create a classifier with the training information defined by the property file.
Field Summary | |
---|---|
private static java.lang.String |
classifierVersion
|
private static java.lang.String |
dataDir
The default data directory, relative to the classpath. |
private static java.lang.String |
dataProp
|
private static java.lang.String |
defaultDataProp
The default data property file name, inside the default data directory |
private static ClassifierFactory |
factory
|
private static java.lang.String |
parentPath
|
private static boolean |
relativePath
|
private static TrainingInfo |
trainingInfo
|
private static java.util.Properties |
urlProperties
|
Constructor Summary | |
---|---|
private |
ClassifierFactory()
Creates a new instance of ClassifierFactory. |
Method Summary | |
---|---|
private static java.lang.String |
convert(java.lang.String key)
Retrieves appropriate value from the property file. |
Classifier |
createClassifier()
Creates a new classifier. |
java.lang.String |
getClassifierVersion()
Returns the version of the classifier. |
static ClassifierFactory |
getFactory()
Returns a factory with the training information. |
HierarchyVersion |
getHierarchyTrainsetNo()
Returns the info of the taxonomy hierarchy from of the training file. |
java.lang.String |
getHierarchyVersion()
Returns the version of the taxonomical hierarchy. |
private static ClassifierFactory |
getNonDefaultFactory()
Returns a factory with the training information for the non-default training data files. |
HierarchyTree |
getRoot()
|
static void |
resetDefaultDataProp()
Resets the data property file to the default data property file. |
static void |
setDataProp(java.lang.String properties,
boolean relative)
Sets the property file which contains the mapping of the training files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static TrainingInfo trainingInfo
private static java.util.Properties urlProperties
private static java.lang.String classifierVersion
private static java.lang.String dataDir
private static final java.lang.String defaultDataProp
private static java.lang.String parentPath
private static java.lang.String dataProp
private static ClassifierFactory factory
private static boolean relativePath
Constructor Detail |
---|
private ClassifierFactory() throws java.io.IOException, TrainingDataException
java.io.IOException
TrainingDataException
Method Detail |
---|
public static void resetDefaultDataProp()
public static void setDataProp(java.lang.String properties, boolean relative)
public static ClassifierFactory getFactory() throws java.io.IOException, TrainingDataException
java.io.IOException
TrainingDataException
private static ClassifierFactory getNonDefaultFactory() throws java.io.IOException, TrainingDataException
java.io.IOException
TrainingDataException
private static java.lang.String convert(java.lang.String key) throws java.io.IOException
java.io.IOException
public Classifier createClassifier()
public java.lang.String getHierarchyVersion()
public HierarchyVersion getHierarchyTrainsetNo()
public java.lang.String getClassifierVersion()
public HierarchyTree getRoot()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |