public class BabelNetConfiguration extends Object
PropertiesConfiguration
hub for the BabelNet API.Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_FILE
BabelNet .properties filename
|
static String |
CONFIG_VAR_FILE
BabelNet .var.properties filename
|
static String |
DOCUMENTATION_URL
URL of the BabelNet guide
|
Modifier and Type | Method and Description |
---|---|
List<it.uniroma1.lcl.jlt.util.Language> |
getBabelLanguages()
Gets the BabelNet languages specified in the config file
|
String |
getBabelNetBaseDir()
Gets the BabelNet base directory
|
String |
getBabelNetDictIndexDir()
Gets the BabelNet dictionary index directory
|
String |
getBabelNetGlossIndexDir()
Gets the BabelNet gloss index directory
|
String |
getBabelNetGraphIndexDir()
Gets the BabelNet graph index directory
|
String |
getBabelNetImageIndexDir()
Gets the BabelNet image index directory
|
String |
getBabelNetImageRestFulUrl()
Gets the BabelNet image RESTful URL
|
String |
getBabelNetInfoIndexDir()
Gets the BabelNet info index directory
|
String |
getBabelNetKey()
Gets the BabelNet online key
|
String |
getBabelNetLexiconIndexDir()
Gets the BabelNet lexicon index directory
|
String |
getBabelNetMappingIndexDir()
Gets the BabelNet mapping index directory
|
String |
getBabelNetRestFulUrl()
Gets the BabelNet RESTful URL
|
String |
getBadImageListPath()
Returns the path of the bad image list
|
static BabelNetConfiguration |
getInstance()
Returns the configuration instance
|
String |
getPointerListPath()
Returns the path of the pointer list
|
String |
getWordNetInfoIndexDir()
Gets the WordNet dictionary index directory
|
boolean |
isBadImageFilterActive()
Returns a boolean specifying whether the bad image filter is active
|
void |
setBasePath(String baseAbsolutePath)
Sets absolute base path
|
void |
setConfigurationFile(File configurationFile)
Set the file from which to load the new properties
|
public static final String DOCUMENTATION_URL
public static String CONFIG_FILE
public static String CONFIG_VAR_FILE
public static BabelNetConfiguration getInstance()
BabelNetConfiguration
public void setConfigurationFile(File configurationFile)
configurationFile
- the file under the config/ folder to load the properties frompublic String getBabelNetBaseDir()
public String getBabelNetLexiconIndexDir()
public String getBabelNetDictIndexDir()
public String getBabelNetInfoIndexDir()
public String getWordNetInfoIndexDir()
public String getBabelNetGlossIndexDir()
public String getBabelNetGraphIndexDir()
public String getBabelNetImageIndexDir()
public String getBabelNetMappingIndexDir()
public String getBabelNetKey()
public String getBabelNetRestFulUrl()
public String getBabelNetImageRestFulUrl()
public List<it.uniroma1.lcl.jlt.util.Language> getBabelLanguages()
public boolean isBadImageFilterActive()
public String getBadImageListPath()
public String getPointerListPath()
public void setBasePath(String baseAbsolutePath)
baseAbsolutePath
- the absolute base pathCopyright © 2016–2018. All rights reserved.