public class CategorizerDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
protected Categorizer |
categorizer |
protected String |
className |
protected static int |
DEFAULT_MAX_SUGGESTIONS |
protected static int |
DEFAULT_MIN_TEXT_LENGTH |
protected boolean |
enabled |
protected CategorizerFactory |
factory |
static org.apache.commons.logging.Log |
log |
protected int |
maxSuggestions |
protected int |
minTextLength |
protected String |
modelFile |
protected String |
name |
protected Double |
precisionThreshold |
protected String |
propertyXPath |
protected RuntimeContext |
runtimeContext |
List<String> |
skipFacets |
Constructor and Description |
---|
CategorizerDescriptor() |
Modifier and Type | Method and Description |
---|---|
int |
getMinTextLength() |
String |
getName() |
void |
initializeInContext(RuntimeContext context) |
boolean |
isEnabled() |
CategorizerDescriptor |
merge(CategorizerDescriptor other)
Chainable update the parameters of the current descriptor with the non-null parameters of the other descriptor.
|
void |
processDocument(DocumentModel doc,
String textContent) |
void |
setMinTextLength(int minTextLength) |
boolean |
shouldProcess(DocumentModel doc) |
public static final org.apache.commons.logging.Log log
protected static int DEFAULT_MAX_SUGGESTIONS
protected static int DEFAULT_MIN_TEXT_LENGTH
protected RuntimeContext runtimeContext
protected String propertyXPath
protected boolean enabled
protected int maxSuggestions
protected int minTextLength
protected Double precisionThreshold
public List<String> skipFacets
protected Categorizer categorizer
protected CategorizerFactory factory
public CategorizerDescriptor()
public void initializeInContext(RuntimeContext context)
public boolean isEnabled()
public void processDocument(DocumentModel doc, String textContent) throws PropertyException
PropertyException
public boolean shouldProcess(DocumentModel doc)
public int getMinTextLength()
public void setMinTextLength(int minTextLength)
public CategorizerDescriptor merge(CategorizerDescriptor other)
Copyright © 2015 Nuxeo SA. All rights reserved.