java.lang.Objectucot.ModuleProperties
ucot.heuristic.AbbottsHeuristic
public class AbbottsHeuristic
Abbott's Heuristic is a way to etsimate which parts of the speech are relevant and in which way when doing object analyze.
Field Summary | |
---|---|
private java.util.logging.Logger |
logger
|
static java.lang.String |
name
|
Fields inherited from class ucot.ModuleProperties |
---|
properties, propertiesURL |
Constructor Summary | |
---|---|
AbbottsHeuristic()
|
Method Summary | |
---|---|
void |
applyProperties()
Applies current properties for the module. |
void |
doHeuristic(ParsedData data,
AnalyzeModel analyzeModel)
Performs heuristic on given ParsedData object returns. |
java.lang.String |
getName()
Returns adapter's name. |
java.util.Properties |
loadDefaultProperties()
Method which returns the factory default properties for the module. |
java.lang.String |
toString()
|
Methods inherited from class ucot.ModuleProperties |
---|
getProperties, loadProperties, saveProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ucot.ModulePropertyInterface |
---|
getProperties, loadProperties, saveProperties, setProperties |
Field Detail |
---|
public static final java.lang.String name
private java.util.logging.Logger logger
Constructor Detail |
---|
public AbbottsHeuristic()
Method Detail |
---|
public void doHeuristic(ParsedData data, AnalyzeModel analyzeModel) throws java.lang.Exception
HeuristicInterface
doHeuristic
in interface HeuristicInterface
data
- Parsed Use case for the heuristic.analyzeModel
- Analyze model where parsed data is added to.
java.lang.Exception
public java.lang.String getName()
HeuristicInterface
getName
in interface HeuristicInterface
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Properties loadDefaultProperties()
ModulePropertyInterface
Method which returns the factory default properties for the module.
loadDefaultProperties
in interface ModulePropertyInterface
loadDefaultProperties
in class ModuleProperties
ModulePropertyInterface.loadDefaultProperties()
public void applyProperties() throws BadPropertyValueException
ModulePropertyInterface
Applies current properties for the module.
applyProperties
in interface ModulePropertyInterface
applyProperties
in class ModuleProperties
BadPropertyValueException
- In this case exception
is thrown only if either the given parser or heuristic
does not exist.ModulePropertyInterface.applyProperties()