Package com.logicaldoc.ai.serializer
Class FileSerializer
java.lang.Object
com.logicaldoc.ai.serializer.Serializer
com.logicaldoc.ai.serializer.FileSerializer
An 
Serializer that uses plain files- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionRetrieves a reference (path, id or other) to a file used by the modelloadTrainedModel(AIModel<?, ?> model) loadTrainingData(AIModel<?, ?> model) voidsaveTrainedModel(AIModel<?, ?> model, InputStream data) Saves the trained model, the input stream gets closedvoidsaveTrainingData(AIModel<?, ?> model, InputStream data) Saves the training data set, the input stream gets closedMethods inherited from class com.logicaldoc.ai.serializer.SerializerexportModel, importModel
- 
Constructor Details- 
FileSerializerpublic FileSerializer()
 
- 
- 
Method Details- 
loadTrainingData- Specified by:
- loadTrainingDatain class- Serializer
- Throws:
- IOException
 
- 
loadTrainedModel- Specified by:
- loadTrainedModelin class- Serializer
- Throws:
- IOException
 
- 
saveTrainingDataDescription copied from class:SerializerSaves the training data set, the input stream gets closed- Specified by:
- saveTrainingDatain class- Serializer
- Parameters:
- model- The model
- data- The data to save
- Throws:
- IOException- Error storing the training data
 
- 
saveTrainedModelDescription copied from class:SerializerSaves the trained model, the input stream gets closed- Specified by:
- saveTrainedModelin class- Serializer
- Parameters:
- model- The model
- data- The data to save
- Throws:
- IOException- Error storing the model
 
- 
getFileDescription copied from class:SerializerRetrieves a reference (path, id or other) to a file used by the model- Specified by:
- getFilein class- Serializer
- Parameters:
- model- The model
- suffix- The file suffix
- Returns:
- the file's reference
- Throws:
- IOException- Error retrieving the file
 
 
-