public class TfIdfCategorizerFactory extends Object implements CategorizerFactory
Constructor and Description |
---|
TfIdfCategorizerFactory() |
Modifier and Type | Method and Description |
---|---|
Categorizer |
loadInstance(String modelFile,
boolean readonly)
Factory method to build a categorizer instance from a model file
typically holding data dependent parameters typically trained on a
statistically representative text corpus.
|
public Categorizer loadInstance(String modelFile, boolean readonly) throws IOException
CategorizerFactory
loadInstance
in interface CategorizerFactory
modelFile
- the model file to loadreadonly
- if true set the model in read only mode and disable the
learning modeIOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.