public abstract class BasePythonFeaturesExtractor extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
BasePythonFeaturesExtractor.Builder<B extends BasePythonFeaturesExtractor.Builder<B,T>,T extends BasePythonFeaturesExtractor>
The base class for python classifier builders.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BasePythonFeaturesExtractor(BasePythonFeaturesExtractor.Builder builder)
Creates new BasePythonFeaturesExtractor instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Map<String,Collection<Feature>> |
extract(Document document)
Extract features.
|
String |
getModelName()
Gets model name.
|
Path |
getWorkingDir()
Gets working directory.
|
void |
init()
Initialize the features extractor for the proper work.
|
protected BasePythonFeaturesExtractor(BasePythonFeaturesExtractor.Builder builder)
builder - the classifier builderpublic void init()
protected Map<String,Collection<Feature>> extract(Document document)
document - the document (Document) to processpublic void close()
close in interface AutoCloseableCopyright © 2020. All rights reserved.