in utils/entity_resolution.py [0:0]
def _init_entities_files(self):
"""
Each resolver will be loading a specific set of catalog files, and map the loaded values to
pre-defined non-terminal entity nodes as chosen in EXR format.
"""
script_dir = os.path.dirname(__file__)
catalogs_dir_name = 'catalogs'
catalogs_full_path = os.path.join(script_dir, catalogs_dir_name)
self.catalog_files = {
'TOPPING': f'{catalogs_full_path}/topping.txt',
'NUMBER': f'{catalogs_full_path}/number.txt',
'SIZE': f'{catalogs_full_path}/size.txt',
'STYLE': f'{catalogs_full_path}/style.txt',
'DRINKTYPE': f'{catalogs_full_path}/drinks.txt',
'VOLUME': f'{catalogs_full_path}/drink_volume.txt',
'CONTAINERTYPE': f'{catalogs_full_path}/container.txt',
'QUANTITY': f'{catalogs_full_path}/quant_qualifier.txt'
}