com.bericotech.clavin.resolver
Class ResolvedLocation
java.lang.Object
com.bericotech.clavin.resolver.ResolvedLocation
public class ResolvedLocation
- extends Object
Object produced by resolving a location name against gazetteer
records.
Encapsulates a 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 Summary |
ResolvedLocation(org.apache.lucene.document.Document luceneDoc,
LocationOccurrence location,
boolean fuzzy)
Builds a ResolvedLocation from a document retrieved from
the Lucene index representing the geographic entity resolved
from a location name. |
geoname
public GeoName geoname
location
public LocationOccurrence location
matchedName
public String matchedName
fuzzy
public boolean fuzzy
confidence
public float confidence
ResolvedLocation
public ResolvedLocation(org.apache.lucene.document.Document luceneDoc,
LocationOccurrence location,
boolean fuzzy)
- Builds a
ResolvedLocation from a document retrieved from
the Lucene index representing the geographic entity resolved
from a location name.
- Parameters:
luceneDoc - document from Lucene index representing a gazetteer record
equals
public boolean equals(Object obj)
- Tests equivalence between
ResolvedLocation objects.
- Overrides:
equals in class Object
- Parameters:
obj - the other object being compared against
toString
public String toString()
- For pretty-printing.
- Overrides:
toString in class Object
Copyright © 2013 Berico Technologies. All rights reserved.