public class DocPOSTagModelFeatureGenerator extends DocumentCustomFeatureGenerator implements opennlp.tools.util.featuregen.ArtifactToSerializerMapper
| Constructor and Description |
|---|
DocPOSTagModelFeatureGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFeatureData()
Informs the feature generator that the context of the data in the context (typically a document)
is no longer valid.
|
void |
createFeatures(List<String> features,
String[] tokens)
Extract features from given text fragments
|
Map<String,opennlp.tools.util.model.ArtifactSerializer<?>> |
getArtifactSerializerMapping() |
void |
init(Map<String,String> properties,
opennlp.tools.util.featuregen.FeatureGeneratorResourceProvider resourceProvider)
Initialized the Document Custom Feature Generator with defined properties and loaded resources.
|
public void createFeatures(List<String> features, String[] tokens)
DocumentFeatureGeneratorcreateFeatures in interface DocumentFeatureGeneratorfeatures - the list of featurestokens - the text fragments to extract features frompublic void clearFeatureData()
DocumentFeatureGeneratorclearFeatureData in interface DocumentFeatureGeneratorpublic void init(Map<String,String> properties, opennlp.tools.util.featuregen.FeatureGeneratorResourceProvider resourceProvider) throws opennlp.tools.util.InvalidFormatException
DocumentCustomFeatureGeneratorinit in class DocumentCustomFeatureGeneratorproperties - the propertiesresourceProvider - the external resourcesopennlp.tools.util.InvalidFormatException - throws an exceptionCopyright © 2017 IXA pipes. All rights reserved.