|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bericotech.clavin.GeoParserFactory
public class GeoParserFactory
Simple Factory for the creation of GeoParser instances. The 'default' instance being Apache OpenNLP as the Extractor and a local Lucene index as the LocationResolver.
| Constructor Summary | |
|---|---|
GeoParserFactory()
|
|
| Method Summary | |
|---|---|
static GeoParser |
getDefault(String pathToLuceneIndex)
Get the default GeoParser. |
static GeoParser |
getDefault(String pathToLuceneIndex,
boolean fuzzy)
Get the default GeoParser. |
static GeoParser |
getDefault(String pathToLuceneIndex,
int maxHitDepth,
int maxContentWindow)
Get the default GeoParser. |
static GeoParser |
getDefault(String pathToLuceneIndex,
int maxHitDepth,
int maxContentWindow,
boolean fuzzy)
Get the default GeoParser. |
static GeoParser |
getDefault(String pathToLuceneIndex,
LocationExtractor extractor,
int maxHitDepth,
int maxContentWindow,
boolean fuzzy)
Get the default GeoParser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeoParserFactory()
| Method Detail |
|---|
public static GeoParser getDefault(String pathToLuceneIndex)
throws IOException,
org.apache.lucene.queryparser.classic.ParseException
pathToLuceneIndex - Path to the local Lucene index.
IOException - If file isn't found or can't be read.
org.apache.lucene.queryparser.classic.ParseException
public static GeoParser getDefault(String pathToLuceneIndex,
boolean fuzzy)
throws IOException,
org.apache.lucene.queryparser.classic.ParseException
pathToLuceneIndex - Path to the local Lucene index.fuzzy - Should fuzzy matching be used?
IOException - If file isn't found or can't be read.
org.apache.lucene.queryparser.classic.ParseException
public static GeoParser getDefault(String pathToLuceneIndex,
int maxHitDepth,
int maxContentWindow)
throws IOException,
org.apache.lucene.queryparser.classic.ParseException
pathToLuceneIndex - Path to the local Lucene index.maxHitDepth - Number of candidate matches to considermaxContentWindow - How much context to consider when resolving
IOException - If file isn't found or can't be read.
org.apache.lucene.queryparser.classic.ParseException
public static GeoParser getDefault(String pathToLuceneIndex,
int maxHitDepth,
int maxContentWindow,
boolean fuzzy)
throws IOException,
org.apache.lucene.queryparser.classic.ParseException
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?
IOException - If file isn't found or can't be read.
org.apache.lucene.queryparser.classic.ParseException
public static GeoParser getDefault(String pathToLuceneIndex,
LocationExtractor extractor,
int maxHitDepth,
int maxContentWindow,
boolean fuzzy)
throws IOException,
org.apache.lucene.queryparser.classic.ParseException
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?
IOException - If file isn't found or can't be read.
org.apache.lucene.queryparser.classic.ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||