archaeo_super_prompt.dataset.normalization.intervention_date
source package archaeo_super_prompt.dataset.normalization.intervention_date
Utils function for normalizing the intervention dates.
This column is filled in by the Magoh's contributors with arbitrary and not strict patterns, but the number of patterns is finite over the 8000 usefulll records for the training or the evaluation.
Then the normalization functions in this module aims to cover most of them, so the normalization of remaining records can be done manually for just a hundred of rows.
Modules
-
archaeo_super_prompt.dataset.normalization.intervention_date.duration — Transforming functions to get a normalized duration of an excavation.
-
archaeo_super_prompt.dataset.normalization.intervention_date.month_normalization — Code to transform a noisy month string into a numerical month.
-
archaeo_super_prompt.dataset.normalization.intervention_date.period_to_dd — Fix functions for transforming a period of intervention into a start date and a duration.
-
archaeo_super_prompt.dataset.normalization.intervention_date.transforms — Transform functions.
-
archaeo_super_prompt.dataset.normalization.intervention_date.utils — Utils for piping normalization functions.