public class ApacheExtractor extends Object implements LocationExtractor
| Constructor and Description |
|---|
ApacheExtractor()
Builds an
ApacheExtractor by instantiating the OpenNLP
Name Finder and Tokenizer. |
| Modifier and Type | Method and Description |
|---|---|
List<LocationOccurrence> |
extractLocationNames(String plainText)
Extracts location names from unstructured text using the named
entity recognizer (NER) feature provided by the Apache OpenNLP
Name Finder.
|
public ApacheExtractor()
throws IOException
ApacheExtractor by instantiating the OpenNLP
Name Finder and Tokenizer.IOExceptionpublic List<LocationOccurrence> extractLocationNames(String plainText)
extractLocationNames in interface LocationExtractorplainText - Contents of text documentCopyright © 2012–2014 Berico Technologies. All rights reserved.