Closed ArneBinder closed 1 year ago
This PR rearranges the content of src.utils. It now contains the submodules:
src.utils
config_utils
execute_pipeline
instantiate_dict_entries
prepare_omegaconf
logging_utils
close_loggers
get_pylogger
log_hyperparameters
rich_utils
enforce_tags
print_config_tree
statistic_utils
collect_statistics
task_utils
extras
save_file
task_wrapper
Note: All methods are directly importable from src.utils!
Main effects visible from outside:
src.utils.statistics.generic_collect_statistics
src.utils.collect_statistics
src.utils.statistics
src.document.statistics
measure
metric
In addition, this also does the following changes:
conll2003_collect_statistics
conll2003
pytorch_ie.utils.hydra.resolve_target
This PR rearranges the content of
src.utils
. It now contains the submodules:config_utils
withexecute_pipeline
,instantiate_dict_entries
,prepare_omegaconf
logging_utils
withclose_loggers
,get_pylogger
,log_hyperparameters
rich_utils
withenforce_tags
,print_config_tree
statistic_utils
withcollect_statistics
task_utils
withextras
,save_file
,task_wrapper
Note: All methods are directly importable from
src.utils
!Main effects visible from outside:
src.utils.statistics.generic_collect_statistics
becomessrc.utils.collect_statistics
src.utils.statistics
are moved tosrc.document.statistics
measure
ofsrc.utils.collect_statistics
is renamed tometric
In addition, this also does the following changes:
conll2003_collect_statistics
as dataset in theconll2003
experiment to show the statistics functionality.pytorch_ie.utils.hydra.resolve_target
instead of version from the hydra package