class documentation

class BabelNetConfig(Config):

View In Hierarchy

The BabelNet config manager

Method log Log current settings.
Method set_actual_version Set the version of the api
Constant BASE_DIR Undocumented
Constant BASE_VERSION Undocumented
Constant CATEGORY_PREFIXES Undocumented
Constant DICT_INDEX_DIR Undocumented
Constant DOC_BUILDING Undocumented
Constant GLOSS_INDEX_DIR Undocumented
Constant GRAPH_INDEX_DIR Undocumented
Constant IMAGE_INDEX_DIR Undocumented
Constant IMAGE_RESTFUL_URL Undocumented
Constant INFO_INDEX_DIR Undocumented
Constant IS_BAD_IMAGE_FILTER_ACTIVE Undocumented
Constant IS_MUL_CONVERSION_FILTER_ACTIVE Undocumented
Constant LANGUAGES Undocumented
Constant LEXICON_INDEX_DIR Undocumented
Constant LOG_STDOUT_LEVEL Undocumented
Constant MAPPING_INDEX_DIR Undocumented
Constant POINTER_LIST_PATH Undocumented
Constant RESTFUL_KEY Undocumented
Constant RESTFUL_URL Undocumented
Constant RPC_URL Undocumented
Constant USE_REDIRECTION_SENSES Undocumented
Constant VERSION Undocumented
Constant WN_INFO_INDEX_DIR Undocumented

Inherited from Config:

Class Method options Return a dictionary with the Option objects for this config
Method __init__ init method
Method defaults Return the default values of this configuration.
Method load_dict Load a dictionary of configuration values.
Method load_file Load config from a YAML file.
Method snapshot Return a snapshot of the current values of this configuration.
Method __setattr__ Undocumented
Method __str__ Undocumented
Instance Variable _loaded_files files loaded for the config
Instance Variable _values Values of the configuration
def log(self):

Log current settings.

def set_actual_version(self, version):

Set the version of the api

Parameters
version:BabelVersionthe version to set
BASE_DIR =

Undocumented

Value
Option('',
       doc='The BabelNet base directory.')
BASE_VERSION =

Undocumented

Value
Option('4.0',
       doc='The index version.', on_change=_set_base_version)
CATEGORY_PREFIXES =

Undocumented

Value
Option('category_prefix.yml',
       on_change=_load_categories,
       doc='The prefixes for the categories in all languages.')
DICT_INDEX_DIR =

Undocumented

Value
Option('/dict',
       interpolate=BASE_DIR, doc='BabelNet dictionary index directory.')
DOC_BUILDING =

Undocumented

Value
Option(False,
       doc='Used for building the documentation.')
GLOSS_INDEX_DIR =

Undocumented

Value
Option('/gloss',
       interpolate=BASE_DIR, doc='The BabelNet gloss index directory.')
GRAPH_INDEX_DIR =

Undocumented

Value
Option('/graph_CC_BY_NC_SA_30',
       interpolate=BASE_DIR, doc='The BabelNet graph index directory.')
IMAGE_INDEX_DIR =

Undocumented

Value
Option('/image',
       interpolate=BASE_DIR, doc='The BabelNet image index directory.')
IMAGE_RESTFUL_URL =

Undocumented

Value
Option('babelnet.io/images',
       doc='The BabelNet RESTful image URL.')
INFO_INDEX_DIR =

Undocumented

Value
Option('/info_CC_BY_NC_SA_30',
       interpolate=BASE_DIR, doc='The BabelNet info index directory.')
IS_BAD_IMAGE_FILTER_ACTIVE =

Undocumented

Value
Option(True,
       doc='Whether the bad image filter is active')
IS_MUL_CONVERSION_FILTER_ACTIVE =

Undocumented

Value
Option(True,
       doc='Whether the MUL conversion is active.')
LANGUAGES =

Undocumented

Value
Option('languages.yml',
       on_change=_load_languages, doc='The BabelNet languages.')
LEXICON_INDEX_DIR =

Undocumented

Value
Option('/lexicon',
       interpolate=BASE_DIR, doc='The BabelNet lexicon index directory.')
LOG_STDOUT_LEVEL =

Undocumented

Value
Option('INFO',
       on_change=_config_logger, doc='The logging level of the application.')
MAPPING_INDEX_DIR =

Undocumented

Value
Option('/core_CC_BY_NC_SA_30',
       interpolate=BASE_DIR, doc='The BabelNet mapping index directory.')
POINTER_LIST_PATH =

Undocumented

Value
Option('',
       doc='The path of the pointer list.')
RESTFUL_KEY =

Undocumented

Value
Option('',
       doc='The BabelNet online key.')
RESTFUL_URL =

Undocumented

Value
Option('https://babelnet.io/v6/service',
       doc='The BabelNet RESTful URL.')
RPC_URL =

Undocumented

Value
Option('',
       doc='The BabelNet Docker endpoint.')
USE_REDIRECTION_SENSES =

Undocumented

Value
Option(True,
       doc='Whether redirections also count as appropriate senses.')
VERSION =

Undocumented

Value
Option('5.1',
       doc='The index version.', on_change=_set_version)
WN_INFO_INDEX_DIR =

Undocumented

Value
Option('/info_wordnet',
       interpolate=BASE_DIR, doc='The WordNet dictionary index directory.')