Package it.uniroma1.lcl.babelnet
Class BabelNetConfiguration
- java.lang.Object
-
- it.uniroma1.lcl.babelnet.BabelNetConfiguration
-
public class BabelNetConfiguration extends Object
ThePropertiesConfiguration
hub for the BabelNet API.- Author:
- navigli
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_FILE
BabelNet .properties filenamestatic String
CONFIG_VAR_FILE
BabelNet .var.properties filenamestatic String
DOCUMENTATION_URL
URL of the BabelNet guide
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<it.uniroma1.lcl.jlt.util.Language>
getBabelLanguages()
Gets the BabelNet languages specified in the config fileString
getBabelNetBaseDir()
Gets the BabelNet base directoryString
getBabelNetDictIndexDir()
Gets the BabelNet dictionary index directoryString
getBabelNetGlossIndexDir()
Gets the BabelNet gloss index directoryString
getBabelNetGraphIndexDir()
Gets the BabelNet graph index directoryString
getBabelNetImageIndexDir()
Gets the BabelNet image index directoryString
getBabelNetImageRestFulUrl()
Gets the BabelNet image RESTful URLString
getBabelNetInfoIndexDir()
Gets the BabelNet info index directoryString
getBabelNetKey()
Gets the BabelNet online keyString
getBabelNetLexiconIndexDir()
Gets the BabelNet lexicon index directoryString
getBabelNetMappingIndexDir()
Gets the BabelNet mapping index directoryString
getBabelNetRestFulUrl()
Gets the BabelNet RESTful URLString
getBadImageListPath()
Returns the path of the bad image liststatic BabelNetConfiguration
getInstance()
Returns the configuration instanceString
getPointerListPath()
Returns the path of the pointer listString
getWordNetInfoIndexDir()
Gets the WordNet dictionary index directoryboolean
isBadImageFilterActive()
Returns a boolean specifying whether the bad image filter is activeboolean
isMULConversionFilterActive()
Returns a boolean specifying whether the MUL conversion is activeboolean
isWordAtlasMainSensesSupportActive()
Returns a boolean specifying whether the support of the WordAtlas main senses is activevoid
setBabelNetDir(String babelNetDirPath)
Sets BabelNetDir pathvoid
setBasePath(String baseAbsolutePath)
Sets absolute base pathvoid
setConfigurationFile(File configurationFile)
Set the file from which to load the new properties
-
-
-
Field Detail
-
DOCUMENTATION_URL
public static final String DOCUMENTATION_URL
URL of the BabelNet guide- See Also:
- Constant Field Values
-
CONFIG_FILE
public static String CONFIG_FILE
BabelNet .properties filename
-
CONFIG_VAR_FILE
public static String CONFIG_VAR_FILE
BabelNet .var.properties filename
-
-
Method Detail
-
getInstance
public static BabelNetConfiguration getInstance()
Returns the configuration instance- Returns:
- an instance of
BabelNetConfiguration
-
setConfigurationFile
public void setConfigurationFile(File configurationFile)
Set the file from which to load the new properties- Parameters:
configurationFile
- the file under the config/ folder to load the properties from
-
getBabelNetBaseDir
public String getBabelNetBaseDir()
Gets the BabelNet base directory- Returns:
- the BabelNet base directory
-
getBabelNetLexiconIndexDir
public String getBabelNetLexiconIndexDir()
Gets the BabelNet lexicon index directory- Returns:
- the BabelNet lexicon index directory
-
getBabelNetDictIndexDir
public String getBabelNetDictIndexDir()
Gets the BabelNet dictionary index directory- Returns:
- the BabelNet dictionary index directory
-
getBabelNetInfoIndexDir
public String getBabelNetInfoIndexDir()
Gets the BabelNet info index directory- Returns:
- the BabelNet info index directory
-
getWordNetInfoIndexDir
public String getWordNetInfoIndexDir()
Gets the WordNet dictionary index directory- Returns:
- the WordNet dictionary index directory
-
getBabelNetGlossIndexDir
public String getBabelNetGlossIndexDir()
Gets the BabelNet gloss index directory- Returns:
- the BabelNet gloss index directory
-
getBabelNetGraphIndexDir
public String getBabelNetGraphIndexDir()
Gets the BabelNet graph index directory- Returns:
- the BabelNet graph index directory
-
getBabelNetImageIndexDir
public String getBabelNetImageIndexDir()
Gets the BabelNet image index directory- Returns:
- the BabelNet image index directory
-
getBabelNetMappingIndexDir
public String getBabelNetMappingIndexDir()
Gets the BabelNet mapping index directory- Returns:
- the BabelNet mapping index directory
-
getBabelNetKey
public String getBabelNetKey()
Gets the BabelNet online key- Returns:
- the BabelNet online key
-
getBabelNetRestFulUrl
public String getBabelNetRestFulUrl()
Gets the BabelNet RESTful URL- Returns:
- the BabelNet RESTful URL
-
getBabelNetImageRestFulUrl
public String getBabelNetImageRestFulUrl()
Gets the BabelNet image RESTful URL- Returns:
- the BabelNet image RESTful URL
-
getBabelLanguages
public List<it.uniroma1.lcl.jlt.util.Language> 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
public String getBadImageListPath()
Returns the path of the bad image list- Returns:
- the path of the bad image list
-
getPointerListPath
public String getPointerListPath()
Returns the path of the pointer list- Returns:
- the path of the pointer list
-
setBasePath
public void setBasePath(String baseAbsolutePath)
Sets absolute base path- Parameters:
baseAbsolutePath
- the absolute base path
-
setBabelNetDir
public void setBabelNetDir(String babelNetDirPath)
Sets BabelNetDir path- Parameters:
babelNetDirPath
- the BabelNetDir path
-
-