public class IsFocusElementExactSameToNerFE<SEARCH extends Element,FOCUS extends Element> extends Object implements FeatureExtractor<FOCUS>
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_NAME |
| Constructor and Description |
|---|
IsFocusElementExactSameToNerFE(Class<SEARCH> searchClass,
boolean isFistNerInDoc) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Feature> |
extract(Document document,
FOCUS focusElement)
Analyze giving document structure and extract feature for specified element.
|
void |
onDocumentComplete() |
void |
onDocumentStart(Document document,
Class<FOCUS> focusClass) |
public static final String FEATURE_NAME
public Collection<Feature> extract(Document document, FOCUS focusElement)
FeatureExtractorextract in interface FeatureExtractor<FOCUS extends Element>document - document to proceedfocusElement - annotated element in document that need to be analyzed for feature extractionpublic void onDocumentComplete()
Copyright © 2019. All rights reserved.