public class GazetteersFactory extends Object
| Constructor and Description |
|---|
GazetteersFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Gazetteers |
get()
This method should never be called before init, or the gazetteer will not be initialized.
|
static void |
init(int maxPhraseLength,
String path,
boolean flatgazetteers)
Initialize the gazetteers.
|
static void |
set(Gazetteers gaz) |
public static void init(int maxPhraseLength,
String path,
boolean flatgazetteers)
throws IOException
path - path to the gaz files.IOExceptionpublic static Gazetteers get()
public static void set(Gazetteers gaz)
Copyright © 2017. All rights reserved.