com.bericotech.clavin.extractor
Class ApacheExtractor
java.lang.Object
com.bericotech.clavin.extractor.ApacheExtractor
- All Implemented Interfaces:
- LocationExtractor
public class ApacheExtractor
- extends Object
- implements LocationExtractor
Extracts location names from unstructured text documents using a
named entity recognizer (Apache OpenNLP Name Finder).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApacheExtractor
public ApacheExtractor()
throws IOException
- Builds an
ApacheExtractor by instantiating the OpenNLP
Name Finder and Tokenizer.
- Throws:
IOException
extractLocationNames
public 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.
- Specified by:
extractLocationNames in interface LocationExtractor
- Parameters:
plainText - Contents of text document
- Returns:
- List of location names and positions
Copyright © 2013 Berico Technologies. All rights reserved.