public class OpenNLPEntityRecognizer extends AbstractEntityRecognizer<OpenNLPEntityRecognizerConfiguration> implements EntityRecognizer
EntityRecognizer for performing
named-entity recognition for natural language text using OpenNLP.
Some code to get the character-based indexes for the spans
was adapted from CLAVIN (https://github.com/Berico-Technologies/CLAVIN)
and used under the Apache Software License, version 2.0.configuration, METADATA_MODEL_FILENAME_KEY, nameFinders| Constructor and Description |
|---|
OpenNLPEntityRecognizer(OpenNLPEntityRecognizerConfiguration configuration)
Create a new ModelEntityRecognizer class that is configured
per the
OpenNLPEntityRecognizerConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
EntityExtractionResponse |
extractEntities(EntityExtractionRequest request) |
findEntities, getConfiguration, getSentimentspublic OpenNLPEntityRecognizer(OpenNLPEntityRecognizerConfiguration configuration)
OpenNLPEntityRecognizerConfiguration.configuration - The configuration.tokenizer - The tokenizer for the text.public EntityExtractionResponse extractEntities(EntityExtractionRequest request) throws EntityFinderException, ModelLoaderException
extractEntities in interface EntityRecognizerEntityFinderExceptionModelLoaderExceptionCopyright © 2018. All rights reserved.