public abstract class CategorizerBuilder extends Builder
Constructor and Description |
---|
CategorizerBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
compile(java.lang.String dirName)
Compile the resource
|
abstract boolean |
compile(java.lang.String dirName,
int maxCategoryPresence)
Compile the resource
|
abstract boolean |
compile(java.lang.String dirName,
int maxCategoryPresence,
int maxVocabularySize)
Compile the resource
|
abstract boolean |
compile(java.lang.String dirName,
int maxCategoryPresence,
int maxVocabularySize,
double minFrequencyInClass)
Compile the resource
|
abstract void |
newDocument(int did,
int classId)
Must be call before processing a document
|
void |
newDocument(java.lang.String uri)
Deprecated.
|
endDocument, feed, feedWithBytes, setPipe
public abstract void newDocument(int did, int classId)
did
- The associated document idclassId
- The associated class id@Deprecated public void newDocument(java.lang.String uri) throws java.lang.NoSuchMethodException
Builder
newDocument
in class Builder
uri
- The document URIjava.lang.NoSuchMethodException
public abstract boolean compile(java.lang.String dirName, int maxCategoryPresence, int maxVocabularySize, double minFrequencyInClass)
dirName
- The destination directorymaxCategoryPresence
- The maximum presence of a category (in percent)maxVocabularySize
- The maximum number of keywords in the resourceminFrequencyInClass
- The minimum frequency a keyword must have to be usedpublic abstract boolean compile(java.lang.String dirName, int maxCategoryPresence, int maxVocabularySize)
dirName
- The destination directorymaxCategoryPresence
- The maximum presence of a category (in percent)maxVocabularySize
- The maximum number of keywords in the resourcepublic abstract boolean compile(java.lang.String dirName, int maxCategoryPresence)
dirName
- The destination directorymaxCategoryPresence
- The maximum presence of a category (in percent)public abstract boolean compile(java.lang.String dirName)
dirName
- The destination directoryCopyright © 2013 Dassault Systèmes, All Rights Reserved.