InputType
- Input type of the embedded EvaluatorOutputType
- Output type of the embedded Evaluatorpublic class EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> extends AbstractCloneableSerializable implements CognitiveModuleFactory
Constructor and Description |
---|
EvaluatorBasedCognitiveModuleFactory()
Creates a new instance of EvaluatorBasedCognitiveModuleFactory.
|
EvaluatorBasedCognitiveModuleFactory(EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> other)
Creates a new copy of a EvaluatorBasedCognitiveModuleFactory.
|
EvaluatorBasedCognitiveModuleFactory(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings,
java.lang.String name)
Creates a new instance of EvaluatorBasedCognitiveModuleFactory.
|
Modifier and Type | Method and Description |
---|---|
EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> |
clone()
Creates a clone of this EvaluatorBasedCognitiveModuleFactory.
|
CognitiveModule |
createModule(CognitiveModel model)
Creates a new CognitiveModule for the given CognitiveModel.
|
java.lang.String |
getName()
Getter for name
|
EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> |
getSettings()
Gets the settings of the module created by the factory.
|
void |
setName(java.lang.String name)
Setter for name
|
void |
setSettings(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings)
Sets the settings of the module created by the factory.
|
public EvaluatorBasedCognitiveModuleFactory()
public EvaluatorBasedCognitiveModuleFactory(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings, java.lang.String name)
name
- Human-readable name of the modulesettings
- The settings for the module.public EvaluatorBasedCognitiveModuleFactory(EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> other)
other
- The other EvaluatorBasedCognitiveModuleFactory to copy.public EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> clone()
clone
in interface CloneableSerializable
clone
in class AbstractCloneableSerializable
public CognitiveModule createModule(CognitiveModel model)
createModule
in interface CognitiveModuleFactory
model
- The model to create a new module forpublic EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> getSettings()
public void setSettings(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings)
settings
- The settings of the module created by the factory.public java.lang.String getName()
public void setName(java.lang.String name)
name
- Human-readable name of the module