public class GeoParser extends Object
parse(java.lang.String) method on your text string.| Constructor and Description |
|---|
GeoParser(LocationExtractor extractor,
Gazetteer gazetteer,
int maxHitDepth,
int maxContextWindow,
boolean fuzzy)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<ResolvedLocation> |
parse(String inputText)
Takes an unstructured text document (as a String), extracts the
location names contained therein, and resolves them into
geographic entities representing the best match for those
location names.
|
public GeoParser(LocationExtractor extractor, Gazetteer gazetteer, int maxHitDepth, int maxContextWindow, boolean fuzzy)
extractor - extracts location names from textgazetteer - resolves location names to gazetteermaxHitDepth - the maximum hit depthmaxContextWindow - the maximum context windowfuzzy - switch to turn on/off fuzzy matchingpublic List<ResolvedLocation> parse(String inputText) throws Exception
inputText - unstructured text to be processedExceptionCopyright © 2012–2014 Berico Technologies. All rights reserved.