Package org.opensextant.extractors.geo
Class PlaceEvidence
java.lang.Object
org.opensextant.data.GeoBase
org.opensextant.data.Place
org.opensextant.extractors.geo.PlaceEvidence
- All Implemented Interfaces:
Comparable<Object>,org.opensextant.data.Geocoding,org.opensextant.data.LatLon
A PlaceEvidence represents a fragment of evidence about a Place. Its intended
purpose is to represent evidence about a Place's identity which has been
extracted from a document. This evidence is used to help disambiguate
(distinguish among) places which have the same or similar names. It is
intentionally very similar to the Place class to facilitate comparisons with
that class.
- Author:
- dlutz, ubaldino
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSCOPE - Where did this evidence come from wrt to the PlaceCandidate it is part of? APRIORI - derived from the gazetteer only, not from any information in the document LOCAL - directly associated with this instance of PC COREF - associated with another (related) PC in the document MERGED - came from the merger of multiple PlaceEvidences (future use) DOCUMENT - in the same document but has no other direct association -
Field Summary
Fields inherited from class org.opensextant.data.Place
admin1, admin1Name, admin2, admin2Name, adminName, country, country_id, method, name_typeFields inherited from class org.opensextant.data.GeoBase
key, latitude, longitude, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetRule()getScope()doublebooleanisSameFeature(org.opensextant.data.Place geo) if Place given has same feature class and code as the current evidencevoidsetEvaluated(boolean b) voidvoidsetScope(PlaceEvidence.Scope scope) voidsetWeight(double weight) toString()Provide a reasonable string label for this PlaceEvidencebooleanMethods inherited from class org.opensextant.data.Place
compareTo, copyTo, defaultHierarchicalPath, getAdmin1, getAdmin1Name, getAdmin1PostalCode, getAdmin2, getAdmin2Name, getAdminName, getConfidence, getCountry, getCountryCode, getFeatureClass, getFeatureCode, getFeatureDesignation, getHierarchicalPath, getId_bias, getInstanceId, getMethod, getName_bias, getName_type, getNDNamenorm, getPlaceID, getPlaceName, getPlacePostalCode, getPopulation, getPrecision, getSource, isAbbreviation, isAdmin1, isAdministrative, isASCIIName, isCode, isCoordinate, isCountry, isName, isNationalCapital, isPlace, isPopulated, isPostal, isSame, isShortName, isSpot, isUpperAdmin, isUppercaseName, sameBoundary, setAdmin1, setAdmin1Name, setAdmin1PostalCode, setAdmin2, setAdmin2Name, setAdminName, setConfidence, setCountry, setCountryCode, setFeatureClass, setFeatureCode, setHierarchicalPath, setId_bias, setInstanceId, setMethod, setName_bias, setName_type, setPlaceID, setPlaceName, setPlacePostalCode, setPopulation, setPrecision, setSourceMethods inherited from class org.opensextant.data.GeoBase
getGeohash, getKey, getLatitude, getLongitude, getName, getNamenorm, hasCoordinate, setGeohash, setKey, setLatitude, setLatLon, setLongitude, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensextant.data.Geocoding
hasCoordinateMethods inherited from interface org.opensextant.data.LatLon
getLatitude, getLongitude, setLatitude, setLongitude
-
Constructor Details
-
PlaceEvidence
public PlaceEvidence() -
PlaceEvidence
-
PlaceEvidence
-
-
Method Details
-
wasEvaluated
public boolean wasEvaluated() -
setEvaluated
public void setEvaluated(boolean b) -
compareTo
- Specified by:
compareToin interfaceComparable<Object>
-
getScope
-
setScope
-
getRule
-
setRule
-
getWeight
public double getWeight() -
setWeight
public void setWeight(double weight) -
isSameFeature
public boolean isSameFeature(org.opensextant.data.Place geo) if Place given has same feature class and code as the current evidence -
toString
Provide a reasonable string label for this PlaceEvidence- Overrides:
toStringin classorg.opensextant.data.Place
-