A B C D E F G H I K L M N O P Q R S T U V W 

A

addAdminCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to add the FeatureCodes representing administrative divisions to the restriction list.
addAncestryAdminCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to add the FeatureCodes representing administrative divisions that can be part of the ancestry tree to the restriction list.
addCityCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to add the FeatureCodes representing cities and other populated places to the restriction list.
addCountryCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to add the FeatureCodes representing countries and similar top-level political entities to the restriction list.
addFeatureCodes(FeatureCode) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Add the provided FeatureCode to the set of query constraints.
addFeatureCodes(FeatureCode, FeatureCode...) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Add the provided FeatureCodes to the set of query constraints.
addFeatureCodes(Collection<FeatureCode>) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Add the provided FeatureCodes to the set of query constraints.
addParentIds(Integer) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Add the provided parent ID to the set of query constraints.
addParentIds(Integer, Integer...) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Add the provided parent IDs to the set of query constraints.
addParentIds(Collection<Integer>) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Add the provided parent IDs to the set of query constraints.
ApacheExtractor - Class in com.bericotech.clavin.extractor
Extracts location names from unstructured text documents using a named entity recognizer (Apache OpenNLP Name Finder).
ApacheExtractor() - Constructor for class com.bericotech.clavin.extractor.ApacheExtractor
Builds an ApacheExtractor by instantiating the OpenNLP Name Finder and Tokenizer.
apply(QueryBuilder) - Method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
 

B

BinarySimilarity - Class in com.bericotech.clavin.index
Turns TF (term frequency) into a binary (yes/no) proposition in calculating Lucene relevance score.
BinarySimilarity() - Constructor for class com.bericotech.clavin.index.BinarySimilarity
Simple default constructor for BinarySimilarity.
broaden() - Method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
 
build() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Constructs a query from the current configuration of this Builder.
buildIndex(File, List<File>, File) - Method in class com.bericotech.clavin.index.IndexDirectoryBuilder
 

C

canNarrow() - Method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
 
chunkifyList(List<T>, int) - Static method in class com.bericotech.clavin.util.ListUtils
Splits a list into a set of sublists (preserving order) where the size of each sublist is bound by a given max size, and ensuring that no list has fewer than half the max size number of elements.
ClavinException - Exception in com.bericotech.clavin
A wrapper exception for errors occurring when resolving locations with CLAVIN.
ClavinException() - Constructor for exception com.bericotech.clavin.ClavinException
Create a new ClavinException.
ClavinException(String) - Constructor for exception com.bericotech.clavin.ClavinException
Create a new ClavinException with the given message.
ClavinException(String, Throwable) - Constructor for exception com.bericotech.clavin.ClavinException
Create a new ClavinException with the given message and cause.
ClavinException(Throwable) - Constructor for exception com.bericotech.clavin.ClavinException
Create a new ClavinException with the given cause.
ClavinLocationResolver - Class in com.bericotech.clavin.resolver
Resolves location names into GeoName objects.
ClavinLocationResolver(Gazetteer) - Constructor for class com.bericotech.clavin.resolver.ClavinLocationResolver
Create a new ClavinLocationResolver.
clearFeatureCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to clear any existing FeatureCode restrictions.
clearParentIds() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to remove all current parent ID restrictions.
com.bericotech.clavin - package com.bericotech.clavin
 
com.bericotech.clavin.extractor - package com.bericotech.clavin.extractor
 
com.bericotech.clavin.gazetteer - package com.bericotech.clavin.gazetteer
 
com.bericotech.clavin.gazetteer.query - package com.bericotech.clavin.gazetteer.query
 
com.bericotech.clavin.index - package com.bericotech.clavin.index
 
com.bericotech.clavin.resolver - package com.bericotech.clavin.resolver
 
com.bericotech.clavin.resolver.multipart - package com.bericotech.clavin.resolver.multipart
 
com.bericotech.clavin.util - package com.bericotech.clavin.util
 
CountryCode - Enum in com.bericotech.clavin.gazetteer
ISO-3166 2-letter country codes used by GeoNames.
createComponents(String, Reader) - Method in class com.bericotech.clavin.index.WhitespaceLowerCaseAnalyzer
Provides tokenizer access for the analyzer.

D

DamerauLevenshtein - Class in com.bericotech.clavin.util
Utility functions for calculating edit distance between strings, consistent with the Damerau-Levenshtein metric.
DamerauLevenshtein() - Constructor for class com.bericotech.clavin.util.DamerauLevenshtein
 
damerauLevenshteinDistance(String, String) - Static method in class com.bericotech.clavin.util.DamerauLevenshtein
Computes the true Damerau–Levenshtein edit distance (with adjacent transpositions) between two given strings.

Based on C# code from Wikipedia.
damerauLevenshteinDistanceCaseInsensitive(String, String) - Static method in class com.bericotech.clavin.util.DamerauLevenshtein
Convenience method for calling damerauLevenshteinDistance(String str1, String str2) when you don't care about case sensitivity.
DEFAULT_MAX_CONTEXT_WINDOW - Static variable in class com.bericotech.clavin.resolver.ClavinLocationResolver
The default context window to consider when resolving matches.
DEFAULT_MAX_HIT_DEPTH - Static variable in class com.bericotech.clavin.resolver.ClavinLocationResolver
The default number of candidate matches to consider.
DefaultScorer - Class in com.bericotech.clavin.resolver.multipart
The default scorer combines several weighted metrics to return a score in the range [0.0, 1.0].
DefaultScorer() - Constructor for class com.bericotech.clavin.resolver.multipart.DefaultScorer
 
description - Variable in enum com.bericotech.clavin.gazetteer.FeatureClass
 

E

equals(Object) - Method in class com.bericotech.clavin.extractor.LocationOccurrence
Tests equivalence based on name and position.
equals(Object) - Method in class com.bericotech.clavin.gazetteer.GeoName
 
equals(Object) - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
equals(Object) - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation.Match
 
equals(Object) - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationName
Tests equivalence based on names of city, state, and country.
equals(Object) - Method in class com.bericotech.clavin.resolver.multipart.ResolvedMultipartLocation
Tests equivalence based on names of city, state, and country.
equals(Object) - Method in class com.bericotech.clavin.resolver.ResolvedLocation
 
extractLocationNames(String) - Method in class com.bericotech.clavin.extractor.ApacheExtractor
Extracts location names from unstructured text using the named entity recognizer (NER) feature provided by the Apache OpenNLP Name Finder.
extractLocationNames(String) - Method in interface com.bericotech.clavin.extractor.LocationExtractor
Extracts a list of location names found in unstructured text.

F

FeatureClass - Enum in com.bericotech.clavin.gazetteer
Feature categories used by GeoNames.
FeatureCode - Enum in com.bericotech.clavin.gazetteer
Individual feature codes used by GeoNames.
FeatureCodeBuilder - Class in com.bericotech.clavin.gazetteer
Generates FeatureClass enum definitions from GeoNames http://download.geonames.org/export/dump/featureCodes_en.txt file.
FeatureCodeBuilder() - Constructor for class com.bericotech.clavin.gazetteer.FeatureCodeBuilder
 
featureCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Get the set of FeatureCodes that will be used to constrain the query results.
featureCodes(Set<FeatureCode>) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Set the FeatureCodes that will be used to constraint the query results; replacing any previously configured IDs.
fileToString(File) - Static method in class com.bericotech.clavin.util.TextUtils
Wrapper for calling Apache Commons IO toString(BufferedReader) on a File, essentially providing a File.toString() method for the contents of a text file.
filterDupes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Does this builder filter duplicate results?
filterDupes(boolean) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Indicate whether or not this builder should filter duplicate results.
forGeoName(GeoName) - Static method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
 
FuzzyMode - Enum in com.bericotech.clavin.gazetteer.query
This enum is used to indicate how and when to apply fuzzy matching for gazetteer queries.
fuzzyMode() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Get the current fuzzy matching mode.
fuzzyMode(FuzzyMode) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Configure the fuzzy matching mode.

G

Gazetteer - Interface in com.bericotech.clavin.gazetteer.query
A Gazetteer provides lookup methods for retrieving details about known places found in the indexed Gazetteer data.
GazetteerQuery - Class in com.bericotech.clavin.gazetteer.query
Configuration parameters for querying a Gazetteer.
GazetteerQuery(LocationOccurrence, int, FuzzyMode, boolean, boolean, Set<Integer>, Set<FeatureCode>) - Constructor for class com.bericotech.clavin.gazetteer.query.GazetteerQuery
Create a new GazetteerQuery.
GeoName - Class in com.bericotech.clavin.gazetteer
Data-rich representation of a named location, based on entries in the GeoNames gazetteer.
GeoName(int, String, String, List<String>, String, Double, Double, FeatureClass, FeatureCode, CountryCode, List<CountryCode>, String, String, String, String, Long, Integer, Integer, TimeZone, Date, String) - Constructor for class com.bericotech.clavin.gazetteer.GeoName
Sole constructor for GeoName class.
geonameID - Variable in enum com.bericotech.clavin.gazetteer.CountryCode
 
GeoParser - Class in com.bericotech.clavin
Performs geoparsing of documents; extracts location names from unstructured text and resolves them against a gazetteer to produce structured geo data.
GeoParser(LocationExtractor, Gazetteer, int, int, boolean) - Constructor for class com.bericotech.clavin.GeoParser
Default constructor.
GeoParserFactory - Class in com.bericotech.clavin
Simple Factory for the creation of GeoParser instances.
GeoParserFactory() - Constructor for class com.bericotech.clavin.GeoParserFactory
 
getAdmin1Code() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the code for the first level administrative division (e.g.
getAdmin2Code() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the code for the second level administrative division (e.g.
getAdmin3Code() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the code for the third level administrative division.
getAdmin4Code() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the code for the fourth level administrative division.
getAlternateCountryCodes() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the alternate ISO-3166 2-letter country codes.
getAlternateNames() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the alternate names for the location.
getAncestryKey() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the ancestry key that can be used to identify this administrative division.
getAsciiName() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the name of the geographical point in plain ascii characters.
getBestLocation() - Method in class com.bericotech.clavin.resolver.multipart.SearchResult
 
getBooleanIndexValue(boolean) - Static method in enum com.bericotech.clavin.index.IndexField
Gets the integer value representing the provided boolean value in the Lucene index.
getCity() - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationName
Get the text of the city name.
getCity() - Method in class com.bericotech.clavin.resolver.multipart.ResolvedMultipartLocation
Get the text of the city name.
getClosestLocations(GazetteerQuery) - Method in interface com.bericotech.clavin.gazetteer.query.Gazetteer
Execute a query against the gazetteer using the provided configuration, returning the top matches as ResolvedLocations.
getClosestLocations(GazetteerQuery) - Method in class com.bericotech.clavin.gazetteer.query.LuceneGazetteer
Execute a query against the Lucene gazetteer index using the provided configuration, returning the top matches as ResolvedLocations.
getCode(GeoName) - Method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
 
getConfidence() - Method in class com.bericotech.clavin.resolver.ResolvedLocation
Get the confidence score for resolution.
getCountry() - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationName
Get the text of the country name.
getCountry() - Method in class com.bericotech.clavin.resolver.multipart.ResolvedMultipartLocation
Get the text of the country name.
getDefault(String) - Static method in class com.bericotech.clavin.GeoParserFactory
Get the default GeoParser, with maxHitDepth and maxContentWindow both set to 1, and fuzzy matching turned off.
getDefault(String, boolean) - Static method in class com.bericotech.clavin.GeoParserFactory
Get a GeoParser with fuzzy matching explicitly turned on or off.
getDefault(String, int, int) - Static method in class com.bericotech.clavin.GeoParserFactory
Get a GeoParser with defined values for maxHitDepth and maxContentWindow.
getDefault(String, int, int, boolean) - Static method in class com.bericotech.clavin.GeoParserFactory
Get a GeoParser with defined values for maxHitDepth and maxContentWindow, and fuzzy matching explicitly turned on or off.
getDefault(String, LocationExtractor, int, int, boolean) - Static method in class com.bericotech.clavin.GeoParserFactory
Get a GeoParser with defined values for maxHitDepth and maxContentWindow, fuzzy matching explicitly turned on or off, and a specific LocationExtractor to use.
getDepth() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation.Match
 
getDescription() - Method in enum com.bericotech.clavin.gazetteer.FeatureCode
 
getDigitalElevationModel() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the digital elevation model, srtm3 or gtopo30, average elevation of 3''x3'' (ca 90mx90m) or 30''x30'' (ca 900mx900m) area in meters, integer.
getElevation() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the elevation in meters.
getFeatureClass() - Method in enum com.bericotech.clavin.gazetteer.FeatureCode
 
getFeatureClass() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the major feature category.
getFeatureCode() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the feature code.
getFeatureCodes() - Method in class com.bericotech.clavin.gazetteer.query.GazetteerQuery
Get the set of FeatureCodes that should be used to restrict the search.
getFuzzyMode() - Method in class com.bericotech.clavin.gazetteer.query.GazetteerQuery
Indicates how fuzzy matching should be used.
getGazetteer() - Method in class com.bericotech.clavin.resolver.ClavinLocationResolver
Get the Gazetteer used by this resolver.
getGazetteerRecord() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the gazetteer record for this GeoName.
getGazetteerRecordWithAncestry() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the gazetteer records for this GeoName and its ancestors, separated by newline characters.
getGeoName(int) - Method in interface com.bericotech.clavin.gazetteer.query.Gazetteer
Retrieves the GeoName with the provided ID.
getGeoName(int) - Method in class com.bericotech.clavin.gazetteer.query.LuceneGazetteer
Retrieves the GeoName with the provided ID.
getGeoname() - Method in class com.bericotech.clavin.resolver.ResolvedLocation
Get the geographic entity resolved from the location name.
getGeonameID() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the ID of the record in geonames database.
getLatitude() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the latitude in decimal degrees.
getLevel() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation.Match
 
getLocation() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation.Match
 
getLocation() - Method in class com.bericotech.clavin.resolver.ResolvedLocation
Get the original location name extracted from the text.
getLongitude() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the longitude in decimal degrees.
getMatch(SearchLevel) - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
getMatchCount() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
getMatchedName() - Method in class com.bericotech.clavin.resolver.ResolvedLocation
Get the name from the gazetteer record that the inputName was matched against.
getMatches() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
getMaximumScore() - Method in class com.bericotech.clavin.resolver.multipart.DefaultScorer
 
getMaximumScore() - Method in interface com.bericotech.clavin.resolver.multipart.Scorer
Get the maximum score returned by this scorer.
getMaxResults() - Method in class com.bericotech.clavin.gazetteer.query.GazetteerQuery
Get the maximum number of results that should be returned by this query.
getMinimumScore() - Method in class com.bericotech.clavin.resolver.multipart.DefaultScorer
 
getMinimumScore() - Method in interface com.bericotech.clavin.resolver.multipart.Scorer
Get the minimum score returned by this scorer.
getModificationDate() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the last modification date in the GeoNames database.
getMostSpecificMatch() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
getName() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the name of the geographical point (UTF-8).
getOccurrence() - Method in class com.bericotech.clavin.gazetteer.query.GazetteerQuery
Get the LocationOccurrence to search on.
getParent() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the parent of this GeoName.
getParentAncestryKey() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the ancestry key that can be used to identify the direct administrative parent of this GeoName.
getParentIds() - Method in class com.bericotech.clavin.gazetteer.query.GazetteerQuery
Get the set of parents that should be used to restrict the search.
getPopulation() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the total number of inhabitants.
getPosition() - Method in class com.bericotech.clavin.extractor.LocationOccurrence
Get the position in the text where the location name starts.
getPreferredName() - Method in class com.bericotech.clavin.gazetteer.GeoName
Gets the preferred name of this GeoName, if configured, otherwise returns the name.
getPrimaryCountryCode() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the primary ISO-3166 2-letter country code.
getPrimaryCountryName() - Method in class com.bericotech.clavin.gazetteer.GeoName
 
getState() - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationName
Get the text of the state/province/etc.
getState() - Method in class com.bericotech.clavin.resolver.multipart.ResolvedMultipartLocation
Get the text of the state/province/etc.
getText() - Method in class com.bericotech.clavin.extractor.LocationOccurrence
Get the text of the location name.
getTimezone() - Method in class com.bericotech.clavin.gazetteer.GeoName
Get the time zone for the geographical point.
getType() - Method in enum com.bericotech.clavin.gazetteer.FeatureCode
 
getValue(Document) - Method in enum com.bericotech.clavin.index.IndexField
Get the value of this field as set in the given document or null if the field is not set or cannot be retrieved.

H

hashCode() - Method in class com.bericotech.clavin.extractor.LocationOccurrence
Required for hashing.
hashCode() - Method in class com.bericotech.clavin.gazetteer.GeoName
 
hashCode() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
hashCode() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation.Match
 
hashCode() - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationName
 
hashCode() - Method in class com.bericotech.clavin.resolver.multipart.ResolvedMultipartLocation
 
hashCode() - Method in class com.bericotech.clavin.resolver.ResolvedLocation
 

I

includeHistorical() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Does this builder include historical locations?
includeHistorical(boolean) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Indicate whether or not this builder includes historical locations in the search results.
IndexDirectoryBuilder - Class in com.bericotech.clavin.index
Builds a Lucene index of geographic entries based on the GeoNames gazetteer.
IndexField - Enum in com.bericotech.clavin.index
The fields of the Lucene gazetteer index.
isAdmin() - Method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
 
isAncestorOf(GeoName) - Method in class com.bericotech.clavin.gazetteer.GeoName
Is this GeoName an ancestor of the provided GeoName?
isAncestryResolved() - Method in class com.bericotech.clavin.gazetteer.GeoName
Check to see if the ancestry hierarchy has been completely resolved for this GeoName.
isDemonym(LocationOccurrence) - Static method in class com.bericotech.clavin.resolver.ClavinLocationResolver
Various named entity recognizers tend to mistakenly extract demonyms (i.e., names for residents of localities (e.g., American, British)) as place names, which tends to gum up the works for the resolver, so this method filters them out from the list of LocationOccurrences passed to the resolver.
isDescendantOf(GeoName) - Method in class com.bericotech.clavin.gazetteer.GeoName
Is this GeoName a descendant of the provided GeoName?
isEditDistance1(String, String) - Static method in class com.bericotech.clavin.util.DamerauLevenshtein
Fast method for determining whether the Damerau-Levenshtein edit distance between two strings is less than 2.
isFilterDupes() - Method in class com.bericotech.clavin.gazetteer.query.GazetteerQuery
Should duplicate results be filtered so only the best match for each location is returned?
isFullySpecified() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
isFuzzy() - Method in class com.bericotech.clavin.resolver.ResolvedLocation
Was fuzzy matching used?
isHistorical() - Method in enum com.bericotech.clavin.gazetteer.FeatureCode
 
isIncludeHistorical() - Method in class com.bericotech.clavin.gazetteer.query.GazetteerQuery
Should historical locations be included in the search results?
isTokenChar(int) - Method in class com.bericotech.clavin.index.WhitespaceLowerCaseTokenizer
Collects only characters which do not satisfy Character.isWhitespace(int).
isTopLevelAdminDivision() - Method in class com.bericotech.clavin.gazetteer.GeoName
Is this GeoName a top-level administrative division (e.g.
isTopLevelTerritory() - Method in class com.bericotech.clavin.gazetteer.GeoName
Is this GeoName a top-level territory? A GeoName is considered to be a top-level territory if it is an A:TERR record and the name assigned to its primary country code is either the name of the GeoName or one of its configured alternate names.

K

key() - Method in enum com.bericotech.clavin.index.IndexField
 

L

level - Variable in class com.bericotech.clavin.resolver.multipart.SearchResult
 
ListUtils - Class in com.bericotech.clavin.util
Utility methods for list processing.
ListUtils() - Constructor for class com.bericotech.clavin.util.ListUtils
 
location() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Get the currently configured location to query for.
location(LocationOccurrence) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Set the location to query for.
location(String) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to create a LocationOccurrence at position 0 for the given location name.
LocationExtractor - Interface in com.bericotech.clavin.extractor
Simple interface for location name extraction capabilities to be provided by third-party named entity recognition tools.
LocationOccurrence - Class in com.bericotech.clavin.extractor
Container class representing a location name found in a document.
LocationOccurrence(String, int) - Constructor for class com.bericotech.clavin.extractor.LocationOccurrence
Sole construction for LocationOccurrence class.
LocationResolver - Interface in com.bericotech.clavin.resolver
Deprecated.
locations - Variable in class com.bericotech.clavin.resolver.multipart.SearchResult
 
logger - Static variable in class com.bericotech.clavin.resolver.LuceneLocationResolver
Deprecated.
 
LuceneGazetteer - Class in com.bericotech.clavin.gazetteer.query
An implementation of Gazetteer that uses Lucene to rapidly search known locations.
LuceneGazetteer(File) - Constructor for class com.bericotech.clavin.gazetteer.query.LuceneGazetteer
Builds a LuceneGazetteer by loading a pre-built Lucene index from disk and setting configuration parameters for resolving location names to GeoName objects.
LuceneLocationResolver - Class in com.bericotech.clavin.resolver
Deprecated.
LuceneLocationResolver(File, int, int) - Constructor for class com.bericotech.clavin.resolver.LuceneLocationResolver
Deprecated.

M

main(String[]) - Static method in class com.bericotech.clavin.gazetteer.FeatureCodeBuilder
Reads-in featureCodes_en.txt file, spits-out FeatureClass enum definitions.
main(String[]) - Static method in class com.bericotech.clavin.index.IndexDirectoryBuilder
Turns a GeoNames gazetteer file into a Lucene index, and adds some supplementary gazetteer records at the end.
main(String[]) - Static method in class com.bericotech.clavin.WorkflowDemo
Run this after installing & configuring CLAVIN to get a sense of how to use it.
MatchedLocation - Class in com.bericotech.clavin.resolver.multipart
A candidate match for a multi-level search.
MatchedLocation(Deque<SearchResult>) - Constructor for class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
MatchedLocation.Match - Class in com.bericotech.clavin.resolver.multipart
 
MatchedLocation.Match(SearchLevel, ResolvedLocation, int) - Constructor for class com.bericotech.clavin.resolver.multipart.MatchedLocation.Match
 
maxResults() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Get the current maximum number of results.
maxResults(int) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Set the maximum number of search results.
MultipartLocationName - Class in com.bericotech.clavin.resolver.multipart
Convenience object used as input for MultipartLocationResolver Container class representing a multipart location name, such as what's often found in structured data like a spreadsheet or database table, e.g., [Reston][Virginia][United States].
MultipartLocationName(String, String, String) - Constructor for class com.bericotech.clavin.resolver.multipart.MultipartLocationName
Sole constructor for MultipartLocationName class.
MultipartLocationResolver - Class in com.bericotech.clavin.resolver.multipart
Resolves multipart location names from structured data into GeoName objects.
MultipartLocationResolver(Gazetteer) - Constructor for class com.bericotech.clavin.resolver.multipart.MultipartLocationResolver
 

N

name - Variable in enum com.bericotech.clavin.gazetteer.CountryCode
 
narrow() - Method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
 
normalize(int) - Method in class com.bericotech.clavin.index.WhitespaceLowerCaseTokenizer
Converts char to lower case Character.toLowerCase(int).

O

OUT_OF_BOUNDS - Static variable in class com.bericotech.clavin.gazetteer.GeoName
 

P

parentCodes - Variable in class com.bericotech.clavin.resolver.multipart.SearchResult
 
parentIds() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Get the set of parent IDs that will be used to constrain the query results.
parentIds(Set<Integer>) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Set the parent IDs that will be used to constraint the query results; replacing any previously configured IDs.
parentIds - Variable in class com.bericotech.clavin.resolver.multipart.SearchResult
 
parse(String) - Method in class com.bericotech.clavin.GeoParser
Takes an unstructured text document (as a String), extracts the location names contained therein, and resolves them into geographic entities representing the best match for those location names.
parseFromGeoNamesRecord(String) - Static method in class com.bericotech.clavin.gazetteer.GeoName
Builds a GeoName object based on a single gazetteer record in the GeoNames geographical database.
parseFromGeoNamesRecord(String, String) - Static method in class com.bericotech.clavin.gazetteer.GeoName
Builds a GeoName object based on a single gazetteer record in the GeoNames geographical database.

Q

QueryBuilder - Class in com.bericotech.clavin.gazetteer.query
A Builder class to assist in creating GazetteerQuery configurations.
QueryBuilder() - Constructor for class com.bericotech.clavin.gazetteer.query.QueryBuilder
 

R

removeAdminCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to remove the FeatureCodes representing administrative divisions from the restriction list.
removeAncestryAdminCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to remove the FeatureCodes representing administrative divisions that can be part of the ancestry tree from the restriction list.
removeCityCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to remove the FeatureCodes representing cities and other populated places from the restriction list.
removeCountryCodes() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Convenience method to remove the FeatureCodes representing countries and similar top-level political entities from the restriction list.
removeFeatureCodes(FeatureCode) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Remove the provided FeatureCode from the set of query constraints.
removeFeatureCodes(FeatureCode, FeatureCode...) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Remove the provided FeatureCode from the set of query constraints.
removeFeatureCodes(Collection<FeatureCode>) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Remove the provided FeatureCodes from the set of query constraints.
removeParentIds(Integer) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Remove the provided parent ID from the set of query constraints.
removeParentIds(Integer, Integer...) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Remove the provided parent IDs from the set of query constraints.
removeParentIds(Collection<Integer>) - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
Remove the provided parent IDs from the set of query constraints.
ResolvedLocation - Class in com.bericotech.clavin.resolver
Object produced by resolving a location name against gazetteer records.
ResolvedLocation(LocationOccurrence, GeoName, String, boolean) - Constructor for class com.bericotech.clavin.resolver.ResolvedLocation
Builds a ResolvedLocation from a document retrieved from the Lucene index representing the geographic entity resolved from a location name.
ResolvedMultipartLocation - Class in com.bericotech.clavin.resolver.multipart
Convenience object used as output for MultipartLocationResolver Container class representing a resolved multipart location name, such as what's often found in structured data like a spreadsheet or database table.
ResolvedMultipartLocation(ResolvedLocation, ResolvedLocation, ResolvedLocation) - Constructor for class com.bericotech.clavin.resolver.multipart.ResolvedMultipartLocation
Sole constructor for ResolvedMultipartLocation class.
resolveLocation(String, boolean) - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationResolver
Attempts to resolve a location provided as a comma-separated string of political divisions from narrowest to broadest.
resolveLocation(boolean, String...) - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationResolver
Resolves a location provided as a series of political divisions from narrowest to broadest.
resolveLocations(List<LocationOccurrence>, boolean) - Method in class com.bericotech.clavin.resolver.ClavinLocationResolver
Resolves the supplied list of location names into ResolvedLocations containing GeoName objects using the defaults for maxHitDepth and maxContentWindow.
resolveLocations(List<LocationOccurrence>, int, int, boolean) - Method in class com.bericotech.clavin.resolver.ClavinLocationResolver
Resolves the supplied list of location names into ResolvedLocations containing GeoName objects.
resolveLocations(List<LocationOccurrence>, boolean) - Method in interface com.bericotech.clavin.resolver.LocationResolver
resolveLocations(List<LocationOccurrence>, boolean) - Method in class com.bericotech.clavin.resolver.LuceneLocationResolver
resolveMultipartLocation(MultipartLocationName, boolean) - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationResolver
Resolves a multipart location name, such as what's often found in structured data like a spreadsheet or database table (e.g., [Reston][Virginia][United States]), into a ResolvedMultipartLocation containing GeoName objects.

S

score(List<String>, MatchedLocation) - Method in class com.bericotech.clavin.resolver.multipart.DefaultScorer
 
score(List<String>, MatchedLocation) - Method in interface com.bericotech.clavin.resolver.multipart.Scorer
Generate a score representing how well the candidate result matches the search terms.
Scorer - Interface in com.bericotech.clavin.resolver.multipart
Evaluates a particular MatchedLocation against the provided search terms and generates a score used to select the best location for a multi-part search.
SearchLevel - Enum in com.bericotech.clavin.resolver.multipart
A roll-up of feature classes and codes that assists in searching for locations that fall into a particular category.
SearchResult - Class in com.bericotech.clavin.resolver.multipart
 
SearchResult(SearchLevel, List<ResolvedLocation>, Set<Integer>, Set<String>) - Constructor for class com.bericotech.clavin.resolver.multipart.SearchResult
 
setParent(GeoName) - Method in class com.bericotech.clavin.gazetteer.GeoName
Set the parent of this GeoName.

T

TextUtils - Class in com.bericotech.clavin.util
Various utility methods for processing text.
TextUtils() - Constructor for class com.bericotech.clavin.util.TextUtils
 
tf(float) - Method in class com.bericotech.clavin.index.BinarySimilarity
Ignores multiple appearance of the query term in the index document field, effectively making TF (term frequency) a yes/no proposition (i.e., zero is still zero, but you don't get extra points for a query term being found multiple times in an index document field).
toString() - Method in class com.bericotech.clavin.extractor.LocationOccurrence
 
toString() - Method in class com.bericotech.clavin.gazetteer.GeoName
For pretty-printing.
toString() - Method in class com.bericotech.clavin.gazetteer.query.QueryBuilder
 
toString() - Method in class com.bericotech.clavin.resolver.multipart.MatchedLocation
 
toString() - Method in class com.bericotech.clavin.resolver.multipart.MultipartLocationName
For pretty-printing.
toString() - Method in class com.bericotech.clavin.resolver.multipart.ResolvedMultipartLocation
For pretty-printing.
toString() - Method in class com.bericotech.clavin.resolver.multipart.SearchResult
 
toString() - Method in class com.bericotech.clavin.resolver.ResolvedLocation
For pretty-printing.
type - Variable in enum com.bericotech.clavin.gazetteer.FeatureClass
 

U

useFuzzyMatching(int, int) - Method in enum com.bericotech.clavin.gazetteer.query.FuzzyMode
Indicates whether a fuzzy query should be performed in this mode based on the number of results found and the maximum number of results.

V

valueOf(String) - Static method in enum com.bericotech.clavin.gazetteer.CountryCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.bericotech.clavin.gazetteer.FeatureClass
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.bericotech.clavin.gazetteer.FeatureCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.bericotech.clavin.gazetteer.query.FuzzyMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.bericotech.clavin.index.IndexField
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.bericotech.clavin.gazetteer.CountryCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.bericotech.clavin.gazetteer.FeatureClass
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.bericotech.clavin.gazetteer.FeatureCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.bericotech.clavin.gazetteer.query.FuzzyMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.bericotech.clavin.index.IndexField
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.bericotech.clavin.resolver.multipart.SearchLevel
Returns an array containing the constants of this enum type, in the order they are declared.

W

WhitespaceLowerCaseAnalyzer - Class in com.bericotech.clavin.index
A Lucene Analyzer that filters WhitespaceTokenizer with LowerCaseFilter.
WhitespaceLowerCaseAnalyzer() - Constructor for class com.bericotech.clavin.index.WhitespaceLowerCaseAnalyzer
Simple default constructor for WhitespaceLowerCaseAnalyzer.
WhitespaceLowerCaseTokenizer - Class in com.bericotech.clavin.index
LowerCaseTokenizer performs the function of WhitespaceTokenizer and LowerCaseFilter together.
WhitespaceLowerCaseTokenizer(Version, Reader) - Constructor for class com.bericotech.clavin.index.WhitespaceLowerCaseTokenizer
Call the "super" constructor.
WorkflowDemo - Class in com.bericotech.clavin
Quick example showing how to use CLAVIN's capabilities.
WorkflowDemo() - Constructor for class com.bericotech.clavin.WorkflowDemo
 
A B C D E F G H I K L M N O P Q R S T U V W 

Copyright © 2012–2014 Berico Technologies. All rights reserved.