Uses of Class
org.opensextant.extractors.geo.PlaceCandidate
Packages that use PlaceCandidate
Package
Description
Geo Extraction: PlaceGeocoder, SolrGazetteer, GazetteerMatcher
and related items
GeocodeRules
Social Geoinferencing
-
Uses of PlaceCandidate in org.opensextant.extractors.geo
Methods in org.opensextant.extractors.geo that return types with arguments of type PlaceCandidateModifier 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.Methods in org.opensextant.extractors.geo with parameters of type PlaceCandidateModifier and TypeMethodDescriptionvoidPlaceCandidate.addRelated(PlaceCandidate pc) Connect another match to this one, usually something cooccurring or collocated with this matchbooleanTagFilter.filterOut(PlaceCandidate t, String langId, boolean docIsUpper, boolean docIsLower) Experimental.booleanPlaceCandidate.linkGeography(PlaceCandidate otherMention, String slot, String featPrefix) Link geographic mention from other part of the document.voidPlaceCandidate.linkGeography(PlaceCandidate otherMention, String slot, org.opensextant.data.Place geo) Foricbly link geography to the given slot.static booleanPostalGeocoder.linkGeography(PlaceCandidate postal, PlaceCandidate otherMention, String slot, String featPrefix) static booleanPostalGeocoder.unqualifiedPostalLocation(PlaceCandidate match) Method parameters in org.opensextant.extractors.geo with type arguments of type PlaceCandidateModifier and TypeMethodDescriptionstatic voidPostalGeocoder.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
Methods in org.opensextant.extractors.geo.rules with parameters of type PlaceCandidateModifier and TypeMethodDescriptionvoidLocationChooserRule.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.voidNonsenseFilter.assessPhoneticMatch(PlaceCandidate p) Assess the validity of a match candidate with the geographic names associated with it.static booleanNonsenseFilter.assessPunctuation(PlaceCandidate p) optimize punctuation detection and filtration.voidContextualOrganizationRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidCoordinateAssociationRule.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.voidCountryRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) Assess which candidate tags are references to countries.voidFeatureRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) Deprecated.Feature score is now provided as part of id_biasabstract voidGeocodeRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) The one evaluation scheme that all rules must implement.voidHeatMapRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidLocationChooserRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) Yet unchosen location.voidMajorPlaceRule.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.voidNameCodeRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidNameRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidNonLatinNameRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidNonsenseFilter.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidPersonNameFilter.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidPostalCodeAssociationRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidPostalCodeFilter.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidPostalLocationChooser.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidProvinceAssociationRule.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) voidProvinceNameSetter.evaluate(PlaceCandidate name, org.opensextant.data.Place geo) booleanGeocodeRule.filterByNameOnly(PlaceCandidate name) Override here as needed.booleanNonLatinNameRule.filterByNameOnly(PlaceCandidate name) protected booleanGeocodeRule.filterOutByFrequency(PlaceCandidate name, org.opensextant.data.Place geo) Certain names appear often around the world...static booleanRuleTool.hasOnlyDefaultRules(PlaceCandidate pc) test if candidate match has trivial evidence.static booleanMajorPlaceRule.isRuleFor(PlaceCandidate pc) Determine if this rule was applied to the candidate.static booleanNameCodeRule.isRuleFor(PlaceCandidate name) voidGeocodeRule.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.Method parameters in org.opensextant.extractors.geo.rules with type arguments of type PlaceCandidateModifier and TypeMethodDescriptionvoidContextualOrganizationRule.evaluate(List<PlaceCandidate> names) voidCountryRule.evaluate(List<PlaceCandidate> names) voidGeocodeRule.evaluate(List<PlaceCandidate> names) voidHeatMapRule.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.voidLocationChooserRule.evaluate(List<PlaceCandidate> names) voidLocationChooserRule.evaluate(List<PlaceCandidate> names, org.opensextant.processing.Parameters preferences) Walk the entire list.voidMajorPlaceRule.evaluate(List<PlaceCandidate> names) voidNameCodeRule.evaluate(List<PlaceCandidate> names) voidNameRule.evaluate(List<PlaceCandidate> names) voidNonsenseFilter.evaluate(List<PlaceCandidate> names) Evaluate the name in each list of names.voidPersonNameFilter.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.voidPostalCodeAssociationRule.evaluate(List<PlaceCandidate> names) voidPostalCodeFilter.evaluate(List<PlaceCandidate> names) voidPostalLocationChooser.evaluate(List<PlaceCandidate> names) voidProvinceAssociationRule.evaluate(List<PlaceCandidate> names) Evaluate all candidate place mentions by seeing if any resolved Province contains any geo locations with the mentioned name.voidProvinceNameSetter.evaluate(List<PlaceCandidate> names) Apply a Province name to a chosen placevoidPersonNameFilter.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
Methods in org.opensextant.extractors.geo.social with parameters of type PlaceCandidateModifier and TypeMethodDescriptionstatic booleanXponentTextGeotagger.filterOut(PlaceCandidate m) WARNING: Copy of Deepeye Pipes default geotag filter.