from here: https://github.com/ChristophAlt/pytorch-ie-hydra-template/blob/main/src/utils/statistics.py create module `document.statistics` EDIT: This should make use of ~#43~ `pytorch_ie.core.DocumentMetric`, see https://github.com/ChristophAlt/pytorch-ie/pull/308.