Uses of Class
org.opensextant.extractors.geo.PlaceCandidate
Package
Description
Geo Extraction: PlaceGeocoder, SolrGazetteer, GazetteerMatcher
and related items
GeocodeRules
Social Geoinferencing
-
Uses of PlaceCandidate in org.opensextant.extractors.geo
Modifier and TypeMethodDescriptionPlaceCandidate.getRelated()
Geotag a buffer and return all candidates of gazetteer entries whose name matches phrases in the buffer.GazetteerMatcher.tagText
(org.opensextant.data.TextInput t, boolean tagOnly) More convenient way of passing input args, using tuple TextInput (buffer, docid, langid)Geotag a document, returning PlaceCandidates for the mentions in document.Modifier and TypeMethodDescriptionvoid
PlaceCandidate.addRelated
(PlaceCandidate pc) Connect another match to this one, usually something cooccurring or collocated with this matchboolean
TagFilter.filterOut
(PlaceCandidate t, String langId, boolean docIsUpper, boolean docIsLower) Experimental.boolean
PlaceCandidate.linkGeography
(PlaceCandidate otherMention, String slot, String featPrefix) Link geographic mention from other part of the document.void
PlaceCandidate.linkGeography
(PlaceCandidate otherMention, String slot, org.opensextant.data.Place geo) Foricbly link geography to the given slot.static boolean
PostalGeocoder.linkGeography
(PlaceCandidate postal, PlaceCandidate otherMention, String slot, String featPrefix) static boolean
PostalGeocoder.unqualifiedPostalLocation
(PlaceCandidate match) Modifier and TypeMethodDescriptionstatic void
PostalGeocoder.associateMatches
(List<PlaceCandidate> matches, List<PlaceCandidate> postalMatches) Given geotagging from a prior pass of PlaceGeocoder or other stuff, compare and align those tags with POSTAL tags.static List<org.opensextant.extraction.TextMatch>
PostalGeocoder.deriveMatches
(List<PlaceCandidate> postalMatches, org.opensextant.data.TextInput t) For situations of the form: -
Uses of PlaceCandidate in org.opensextant.extractors.geo.rules
Modifier and TypeMethodDescriptionvoid
LocationChooserRule.assessConfidence
(PlaceCandidate pc) Confidence of your final chosen location for a given name is assembled as the sum of some absolute metric plus some additional qualifiers.void
NonsenseFilter.assessPhoneticMatch
(PlaceCandidate p) Assess the validity of a match candidate with the geographic names associated with it.static boolean
NonsenseFilter.assessPunctuation
(PlaceCandidate p) optimize punctuation detection and filtration.void
ContextualOrganizationRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
CoordinateAssociationRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) If a particular geo is close to a candidate name/location, then add to the candidate's score for that location.void
CountryRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) Assess which candidate tags are references to countries.void
FeatureRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) Deprecated.Feature score is now provided as part of id_biasabstract void
GeocodeRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) The one evaluation scheme that all rules must implement.void
HeatMapRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
LocationChooserRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) Yet unchosen location.void
MajorPlaceRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) attach either a Capital or Admin region ID, giving it some weight based on various properties or context.void
NameCodeRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
NameRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
NonLatinNameRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
NonsenseFilter.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
PersonNameFilter.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
PostalCodeAssociationRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
PostalCodeFilter.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
PostalLocationChooser.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
ProvinceAssociationRule.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) void
ProvinceNameSetter.evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) boolean
GeocodeRule.filterByNameOnly
(PlaceCandidate name) Override here as needed.boolean
NonLatinNameRule.filterByNameOnly
(PlaceCandidate name) protected boolean
GeocodeRule.filterOutByFrequency
(PlaceCandidate name, org.opensextant.data.Place geo) Certain names appear often around the world...static boolean
RuleTool.hasOnlyDefaultRules
(PlaceCandidate pc) test if candidate match has trivial evidence.static boolean
MajorPlaceRule.isRuleFor
(PlaceCandidate pc) Determine if this rule was applied to the candidate.static boolean
NameCodeRule.isRuleFor
(PlaceCandidate name) void
GeocodeRule.sameLexicalName
(PlaceCandidate name, org.opensextant.data.Place geo) Increment score for lexical matches accoringly: - non-ASCII match: 2.5 pts - ASCII match: 1.5 pts - Case insenstive match: 0.5 pts Simple example, with one char in Name match, one char in Geo Name ø = ø 2.5 o = o 1.5 O = O 1.5 O = o 0.5 Mention ? Gazetteer Entry Boston != Bøstøn, no points.Modifier and TypeMethodDescriptionvoid
ContextualOrganizationRule.evaluate
(List<PlaceCandidate> names) void
CountryRule.evaluate
(List<PlaceCandidate> names) void
GeocodeRule.evaluate
(List<PlaceCandidate> names) void
HeatMapRule.evaluate
(List<PlaceCandidate> names) Identify the distinct potential named places by location Group places by geohash bins at two levels geohash 3 and geohash 4.void
LocationChooserRule.evaluate
(List<PlaceCandidate> names) void
LocationChooserRule.evaluate
(List<PlaceCandidate> names, org.opensextant.processing.Parameters preferences) Walk the entire list.void
MajorPlaceRule.evaluate
(List<PlaceCandidate> names) void
NameCodeRule.evaluate
(List<PlaceCandidate> names) void
NameRule.evaluate
(List<PlaceCandidate> names) void
NonsenseFilter.evaluate
(List<PlaceCandidate> names) Evaluate the name in each list of names.void
PersonNameFilter.evaluate
(List<PlaceCandidate> names) Evaluate the place name purely based on previous rules or the lexical nature of the name, and not any geography, so this parent method is overriden and returns True always.void
PostalCodeAssociationRule.evaluate
(List<PlaceCandidate> names) void
PostalCodeFilter.evaluate
(List<PlaceCandidate> names) void
PostalLocationChooser.evaluate
(List<PlaceCandidate> names) void
ProvinceAssociationRule.evaluate
(List<PlaceCandidate> names) Evaluate all candidate place mentions by seeing if any resolved Province contains any geo locations with the mentioned name.void
ProvinceNameSetter.evaluate
(List<PlaceCandidate> names) Apply a Province name to a chosen placevoid
PersonNameFilter.evaluateNamedEntities
(org.opensextant.data.TextInput input, List<PlaceCandidate> placeNames, List<TaxonMatch> persons, List<TaxonMatch> orgs, List<TaxonMatch> others) Use known person names to distinguish well-known persons that may or may not overlap in in the text and the namespace. -
Uses of PlaceCandidate in org.opensextant.extractors.geo.social
Modifier and TypeMethodDescriptionstatic boolean
XponentTextGeotagger.filterOut
(PlaceCandidate m) WARNING: Copy of Deepeye Pipes default geotag filter.