public class ResolvedLocation extends Object
GeoName object representing the best match
between a given location name and gazetter record, along with some
information about the geographic entity resolution process.| Constructor and Description |
|---|
ResolvedLocation(LocationOccurrence location,
GeoName geoname,
String matchedName,
boolean fuzzy)
Builds a
ResolvedLocation from a document retrieved from
the Lucene index representing the geographic entity resolved
from a location name. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
float |
getConfidence()
Get the confidence score for resolution.
|
GeoName |
getGeoname()
Get the geographic entity resolved from the location name.
|
LocationOccurrence |
getLocation()
Get the original location name extracted from the text.
|
String |
getMatchedName()
Get the name from the gazetteer record that the inputName was
matched against.
|
int |
hashCode() |
boolean |
isFuzzy()
Was fuzzy matching used?
|
String |
toString()
For pretty-printing.
|
public ResolvedLocation(LocationOccurrence location, GeoName geoname, String matchedName, boolean fuzzy)
ResolvedLocation from a document retrieved from
the Lucene index representing the geographic entity resolved
from a location name.location - the original location occurrencegeoname - the matched gazetteer recordmatchedName - the name that was matched by the search enginefuzzy - was this a fuzzy match?public GeoName getGeoname()
public LocationOccurrence getLocation()
public String getMatchedName()
public boolean isFuzzy()
true if fuzzy matching was usedpublic float getConfidence()
Copyright © 2012–2014 Berico Technologies. All rights reserved.