public class GenericPythonFE<F extends Element> extends BasePythonFeaturesExtractor implements FeatureExtractor<F>
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericPythonFE.Builder<F extends Element>
The type Builder.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GenericPythonFE(BasePythonFeaturesExtractor.Builder builder)
Creates new PythonFeaturesExtractor instance.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Feature> |
extract(Document document,
F element)
Analyze giving document structure and extract feature for specified element.
|
void |
onDestroy() |
void |
onDocumentStart(Document document) |
void |
onInit() |
close, extract, getModelName, getWorkingDir, initprotected GenericPythonFE(BasePythonFeaturesExtractor.Builder builder)
builder - the classifier builderpublic void onInit()
public void onDocumentStart(Document document)
public Collection<Feature> extract(Document document, F element)
FeatureExtractorextract in interface FeatureExtractor<F extends Element>document - document to proceedelement - annotated element in document that need to be analyzed for feature extractionpublic void onDestroy()
Copyright © 2020. All rights reserved.