| Package | Description |
|---|---|
| com.bericotech.clavin | |
| com.bericotech.clavin.gazetteer.query | |
| com.bericotech.clavin.resolver | |
| com.bericotech.clavin.resolver.multipart |
| Modifier and Type | Method and Description |
|---|---|
static GeoParser |
GeoParserFactory.getDefault(String pathToLuceneIndex)
Get the default GeoParser, with maxHitDepth and maxContentWindow
both set to 1, and fuzzy matching turned off.
|
static GeoParser |
GeoParserFactory.getDefault(String pathToLuceneIndex,
boolean fuzzy)
Get a GeoParser with fuzzy matching explicitly turned on or off.
|
static GeoParser |
GeoParserFactory.getDefault(String pathToLuceneIndex,
int maxHitDepth,
int maxContentWindow)
Get a GeoParser with defined values for maxHitDepth and
maxContentWindow.
|
static GeoParser |
GeoParserFactory.getDefault(String pathToLuceneIndex,
int maxHitDepth,
int maxContentWindow,
boolean fuzzy)
Get a GeoParser with defined values for maxHitDepth and
maxContentWindow, and fuzzy matching explicitly turned on or off.
|
static GeoParser |
GeoParserFactory.getDefault(String pathToLuceneIndex,
LocationExtractor extractor,
int maxHitDepth,
int maxContentWindow,
boolean fuzzy)
Get a GeoParser with defined values for maxHitDepth and
maxContentWindow, fuzzy matching explicitly turned on or off,
and a specific LocationExtractor to use.
|
| Modifier and Type | Method and Description |
|---|---|
List<ResolvedLocation> |
LuceneGazetteer.getClosestLocations(GazetteerQuery query)
Execute a query against the Lucene gazetteer index using the provided configuration,
returning the top matches as
ResolvedLocations. |
List<ResolvedLocation> |
Gazetteer.getClosestLocations(GazetteerQuery query)
Execute a query against the gazetteer using the provided configuration,
returning the top matches as
ResolvedLocations. |
GeoName |
LuceneGazetteer.getGeoName(int geonameId)
Retrieves the GeoName with the provided ID.
|
GeoName |
Gazetteer.getGeoName(int geonameId)
Retrieves the GeoName with the provided ID.
|
| Constructor and Description |
|---|
LuceneGazetteer(File indexDir)
Builds a
LuceneGazetteer by loading a pre-built Lucene
index from disk and setting configuration parameters for
resolving location names to GeoName objects. |
| Modifier and Type | Method and Description |
|---|---|
List<ResolvedLocation> |
ClavinLocationResolver.resolveLocations(List<LocationOccurrence> locations,
boolean fuzzy)
Resolves the supplied list of location names into
ResolvedLocations containing GeoName objects
using the defaults for maxHitDepth and maxContentWindow. |
List<ResolvedLocation> |
ClavinLocationResolver.resolveLocations(List<LocationOccurrence> locations,
int maxHitDepth,
int maxContextWindow,
boolean fuzzy)
Resolves the supplied list of location names into
ResolvedLocations containing GeoName objects. |
| Modifier and Type | Method and Description |
|---|---|
ResolvedLocation |
MultipartLocationResolver.resolveLocation(boolean fuzzy,
String... locationParts)
Resolves a location provided as a series of political divisions from narrowest to broadest.
|
ResolvedLocation |
MultipartLocationResolver.resolveLocation(String loc,
boolean fuzzy)
Attempts to resolve a location provided as a comma-separated string of political divisions from
narrowest to broadest.
|
ResolvedMultipartLocation |
MultipartLocationResolver.resolveMultipartLocation(MultipartLocationName location,
boolean fuzzy)
Resolves a multipart location name, such as what's often found
in structured data like a spreadsheet or database table (e.g.,
[Reston][Virginia][United States]), into a
ResolvedMultipartLocation
containing GeoName objects. |
Copyright © 2012–2014 Berico Technologies. All rights reserved.