Skip to content

archaeo_super_prompt.modeling.struct_extract.extractors.archiving_date

source package archaeo_super_prompt.modeling.struct_extract.extractors.archiving_date

Mock archiving extractor with the good data.

As a model for extracting this data is not done, for now we assume this data as known and simulate this behaviour with loading from the dataset.

Classes

source class ArchivingDateOutputSchema()

Bases : BasePerInterventionFeatureSchema

when indentifying the date of an intervention, we refer first to the date of protocol.

source class ArchivingDateProvider()

Bases : DetailedEvaluatorMixin[Any, MagohDataset, Any]

Give the answer of the ArchivingDate.

.

Methods

source method ArchivingDateProvider.fit(X, y: MagohDataset, **kwargs)

source method ArchivingDateProvider.filter_ids(y: MagohDataset, ids: set[InterventionId])

Only keeps the records with an inserted archiving date.

source method ArchivingDateProvider.predict(X: PDFChunkDataset)DataFrame[ArchivingDateOutputSchema]

Raises

  • NotImplementedError

source method ArchivingDateProvider.score(X, y, sample_weight=None)float

source method ArchivingDateProvider.score_and_transform(X, y)