public interface CognitiveModuleFactoryLearner extends CloneableSerializable
Modifier and Type | Method and Description |
---|---|
CognitiveModuleFactory |
learn(CognitiveModel model,
java.util.Collection<? extends java.util.Collection<? extends CognitiveModelInput>> datasets)
Learns a new CognitiveModuleFactory for the given CognitiveModuleFactory
containing all of the modules that will be used before the created
module factory along with the example data used to learn the factory
from.
|
clone
CognitiveModuleFactory learn(CognitiveModel model, java.util.Collection<? extends java.util.Collection<? extends CognitiveModelInput>> datasets)
model
- CognitiveModel to learn the new CognitiveModuleFactory for.
Note that this has to be a CognitiveModel, not a CognitiveModelFactory,
as the CognitiveModelInputs (needed for the dataset) needs
SemanticIdentifier, which is specific to a CognitiveModel. Since the
dataset must be created before this method call, the CognitiveModel
used to give the SemanticIdentifiers to the dataset must also be the
parameter here.datasets
- The datasets containing the inputs to the CognitiveModel
for one or more sequences of data