Skip to content
Snippets Groups Projects
Commit 634cc1c4 authored by David Rouquet's avatar David Rouquet
Browse files

Update config use in ODRL processing

parent 45880b17
Branches
No related tags found
No related merge requests found
......@@ -458,9 +458,22 @@ def generate_odrl_from_amrld_file(
__set_context()
if onto_prefix is None: onto_prefix = 'DefaultId'
base_output_dir = os.path.dirname(out_file_path) if out_file_path is not None else None
config = __set_config(ODRL_CONFIG_FILE_PATH,
'amr', amrld_file_path, onto_prefix,
base_output_dir, technical_dir_path)
config_dict = {
'config_file_path': ODRL_CONFIG_FILE_PATH,
'source_type': 'amr',
'source_corpus': amrld_file_path,
'onto_prefix': onto_prefix,
'base_output_dir': base_output_dir,
'technical_dir_path': technical_dir_path
}
config = __set_config(config_dict)
# config = __set_config(ODRL_CONFIG_FILE_PATH,
# 'amr', amrld_file_path, onto_prefix,
# base_output_dir, technical_dir_path)
assert os.path.exists(amrld_file_path), f'input file does not exists ({amrld_file_path})'
# -- Extraction Processing
......@@ -512,9 +525,22 @@ def generate_odrl_from_amrld_dir(
__set_context()
if onto_prefix is None: onto_prefix = 'DefaultId'
base_output_dir = os.path.dirname(out_file_path) if out_file_path is not None else None
config = __set_config(ODRL_CONFIG_FILE_PATH,
'amr', amrld_dir_path, onto_prefix,
base_output_dir, technical_dir_path)
config_dict = {
'config_file_path': ODRL_CONFIG_FILE_PATH,
'source_type': 'amr',
'source_corpus': amrld_dir_path,
'onto_prefix': onto_prefix,
'base_output_dir': base_output_dir,
'technical_dir_path': technical_dir_path
}
config = __set_config(config_dict)
# config = __set_config(ODRL_CONFIG_FILE_PATH,
# 'amr', amrld_dir_path, onto_prefix,
# base_output_dir, technical_dir_path)
assert os.path.exists(amrld_dir_path), f'input directory does not exists ({amrld_dir_path})'
__count_number_of_graph(config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment