public class GeoParserFactory extends Object
| Constructor and Description |
|---|
GeoParserFactory() |
| Modifier and Type | Method and Description |
|---|---|
static GeoParser |
getDefault(String pathToLuceneIndex)
Get the default GeoParser, with maxHitDepth and maxContentWindow
both set to 1, and fuzzy matching turned off.
|
static GeoParser |
getDefault(String pathToLuceneIndex,
boolean fuzzy)
Get a GeoParser with fuzzy matching explicitly turned on or off.
|
static GeoParser |
getDefault(String pathToLuceneIndex,
int maxHitDepth,
int maxContentWindow)
Get a GeoParser with defined values for maxHitDepth and
maxContentWindow.
|
static GeoParser |
getDefault(String pathToLuceneIndex,
int maxHitDepth,
int maxContentWindow,
boolean fuzzy)
Get a GeoParser with defined values for maxHitDepth and
maxContentWindow, and fuzzy matching explicitly turned on or off.
|
static GeoParser |
getDefault(String pathToLuceneIndex,
LocationExtractor extractor,
int maxHitDepth,
int maxContentWindow,
boolean fuzzy)
Get a GeoParser with defined values for maxHitDepth and
maxContentWindow, fuzzy matching explicitly turned on or off,
and a specific LocationExtractor to use.
|
public static GeoParser getDefault(String pathToLuceneIndex) throws ClavinException
pathToLuceneIndex - Path to the local Lucene index.ClavinException - If the index cannot be created.public static GeoParser getDefault(String pathToLuceneIndex, boolean fuzzy) throws ClavinException
pathToLuceneIndex - Path to the local Lucene index.fuzzy - Should fuzzy matching be used?ClavinException - If the index cannot be created.public static GeoParser getDefault(String pathToLuceneIndex, int maxHitDepth, int maxContentWindow) throws ClavinException
pathToLuceneIndex - Path to the local Lucene index.maxHitDepth - Number of candidate matches to considermaxContentWindow - How much context to consider when resolvingClavinException - If the index cannot be created.public static GeoParser getDefault(String pathToLuceneIndex, int maxHitDepth, int maxContentWindow, boolean fuzzy) throws ClavinException
pathToLuceneIndex - Path to the local Lucene index.maxHitDepth - Number of candidate matches to considermaxContentWindow - How much context to consider when resolvingfuzzy - Should fuzzy matching be used?ClavinException - If the index cannot be created.public static GeoParser getDefault(String pathToLuceneIndex, LocationExtractor extractor, int maxHitDepth, int maxContentWindow, boolean fuzzy) throws ClavinException
pathToLuceneIndex - Path to the local Lucene index.extractor - A specific implementation of LocationExtractor to be usedmaxHitDepth - Number of candidate matches to considermaxContentWindow - How much context to consider when resolvingfuzzy - Should fuzzy matching be used?ClavinException - If the index cannot be created.Copyright © 2012–2014 Berico Technologies. All rights reserved.