Class BabelNetConfiguration
java.lang.Object
it.uniroma1.lcl.babelnet.BabelNetConfiguration
The
PropertiesConfiguration hub for the BabelNet API.- Author:
- navigli
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionList<it.uniroma1.lcl.jlt.util.Language> Gets the BabelNet languages specified in the config fileGets the BabelNet base directoryGets the BabelNet dictionary index directoryGets the BabelNet gloss index directoryGets the BabelNet graph index directoryGets the BabelNet image index directoryGets the BabelNet image RESTful URLGets the BabelNet info index directoryGets the BabelNet online keyGets the BabelNet lexicon index directoryGets the BabelNet mapping index directoryGets the BabelNet RESTful URLReturns the path of the bad image liststatic BabelNetConfigurationReturns the configuration instanceReturns the path of the pointer listGets the WordNet dictionary index directorybooleanReturns a boolean specifying whether the bad image filter is activebooleanReturns a boolean specifying whether the MUL conversion is activebooleanReturns a boolean specifying whether the support of the WordAtlas main senses is activevoidsetBabelNetDir(String babelNetDirPath) Sets BabelNetDir pathvoidsetBasePath(String baseAbsolutePath) Sets absolute base pathvoidsetConfigurationFile(File configurationFile) Set the file from which to load the new properties
-
Field Details
-
DOCUMENTATION_URL
-
CONFIG_FILE
BabelNet .properties filename -
CONFIG_VAR_FILE
BabelNet .var.properties filename
-
-
Method Details
-
getInstance
Returns the configuration instance- Returns:
- an instance of
BabelNetConfiguration
-
setConfigurationFile
Set the file from which to load the new properties- Parameters:
configurationFile- the file under the config/ folder to load the properties from
-
getBabelNetBaseDir
Gets the BabelNet base directory- Returns:
- the BabelNet base directory
-
getBabelNetLexiconIndexDir
Gets the BabelNet lexicon index directory- Returns:
- the BabelNet lexicon index directory
-
getBabelNetDictIndexDir
Gets the BabelNet dictionary index directory- Returns:
- the BabelNet dictionary index directory
-
getBabelNetInfoIndexDir
Gets the BabelNet info index directory- Returns:
- the BabelNet info index directory
-
getWordNetInfoIndexDir
Gets the WordNet dictionary index directory- Returns:
- the WordNet dictionary index directory
-
getBabelNetGlossIndexDir
Gets the BabelNet gloss index directory- Returns:
- the BabelNet gloss index directory
-
getBabelNetGraphIndexDir
Gets the BabelNet graph index directory- Returns:
- the BabelNet graph index directory
-
getBabelNetImageIndexDir
Gets the BabelNet image index directory- Returns:
- the BabelNet image index directory
-
getBabelNetMappingIndexDir
Gets the BabelNet mapping index directory- Returns:
- the BabelNet mapping index directory
-
getBabelNetKey
-
getBabelNetRestFulUrl
Gets the BabelNet RESTful URL- Returns:
- the BabelNet RESTful URL
-
getBabelNetImageRestFulUrl
Gets the BabelNet image RESTful URL- Returns:
- the BabelNet image RESTful URL
-
getBabelLanguages
Gets the BabelNet languages specified in the config file- Returns:
- the BabelNet languages specified in the config file
-
isBadImageFilterActive
public boolean isBadImageFilterActive()Returns a boolean specifying whether the bad image filter is active- Returns:
- a boolean specifying whether the bad image filter is active
-
isMULConversionFilterActive
public boolean isMULConversionFilterActive()Returns a boolean specifying whether the MUL conversion is active- Returns:
- a boolean specifying whether the MUL conversion is active
-
isWordAtlasMainSensesSupportActive
public boolean isWordAtlasMainSensesSupportActive()Returns a boolean specifying whether the support of the WordAtlas main senses is active- Returns:
- a boolean specifying whether the support of the WordAtlas main senses is active
-
getBadImageListPath
Returns the path of the bad image list- Returns:
- the path of the bad image list
-
getPointerListPath
Returns the path of the pointer list- Returns:
- the path of the pointer list
-
setBasePath
Sets absolute base path- Parameters:
baseAbsolutePath- the absolute base path
-
setBabelNetDir
Sets BabelNetDir path- Parameters:
babelNetDirPath- the BabelNetDir path
-