com.bericotech.clavin
Class GeoParser
java.lang.Object
com.bericotech.clavin.GeoParser
public class GeoParser
- extends Object
Performs geoparsing of documents; extracts location names from
unstructured text and resolves them against a gazetteer to produce
structured geo data.
Main API entry point for CLAVIN -- simply instantiate this class and
call the parse(java.lang.String) method on your text string.
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoParser
public GeoParser(LocationExtractor extractor,
LocationResolver resolver,
boolean fuzzy)
- Default constructor.
- Parameters:
extractor - extracts location names from textresolver - resolves location names to gazetteerfuzzy - switch to turn on/off fuzzy matching
parse
public List<ResolvedLocation> parse(String inputText)
throws Exception
- 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.
- Parameters:
inputText - unstructured text to be processed
- Returns:
- list of geo entities resolved from text
- Throws:
Exception
Copyright © 2013 Berico Technologies. All rights reserved.