structa-maestro 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- structa_maestro/__init__.py +294 -0
- structa_maestro/batch.py +564 -0
- structa_maestro/binding.py +206 -0
- structa_maestro/builder/__init__.py +0 -0
- structa_maestro/builder/result_builder.py +308 -0
- structa_maestro/cli.py +730 -0
- structa_maestro/confidence/__init__.py +49 -0
- structa_maestro/confidence/calibration.py +990 -0
- structa_maestro/confidence/normalizer.py +203 -0
- structa_maestro/config.py +111 -0
- structa_maestro/contracts/__init__.py +0 -0
- structa_maestro/contracts/enums.py +86 -0
- structa_maestro/contracts/models.py +229 -0
- structa_maestro/contracts/serialization.py +169 -0
- structa_maestro/documents/__init__.py +32 -0
- structa_maestro/documents/docx_parser.py +215 -0
- structa_maestro/documents/eml_parser.py +360 -0
- structa_maestro/documents/html_parser.py +337 -0
- structa_maestro/documents/inputs.py +277 -0
- structa_maestro/documents/loader.py +675 -0
- structa_maestro/documents/markdown_parser.py +225 -0
- structa_maestro/documents/models.py +33 -0
- structa_maestro/documents/normalization.py +24 -0
- structa_maestro/documents/pdf_parser.py +186 -0
- structa_maestro/documents/txt_parser.py +169 -0
- structa_maestro/engine.py +1201 -0
- structa_maestro/exceptions.py +38 -0
- structa_maestro/provenance/__init__.py +0 -0
- structa_maestro/provenance/associator.py +234 -0
- structa_maestro/py.typed +0 -0
- structa_maestro/review.py +1234 -0
- structa_maestro/schema/__init__.py +19 -0
- structa_maestro/schema/loader.py +616 -0
- structa_maestro/schema/models.py +269 -0
- structa_maestro/schema/pydantic_adapter.py +566 -0
- structa_maestro/schema/rules.py +526 -0
- structa_maestro/schema/serializer.py +156 -0
- structa_maestro/strategies/__init__.py +45 -0
- structa_maestro/strategies/base.py +101 -0
- structa_maestro/strategies/llm_anthropic.py +1142 -0
- structa_maestro/strategies/llm_config.py +154 -0
- structa_maestro/strategies/llm_gemini.py +1171 -0
- structa_maestro/strategies/llm_helpers.py +240 -0
- structa_maestro/strategies/llm_openai_compat.py +1183 -0
- structa_maestro/strategies/schema_compiler.py +248 -0
- structa_maestro/strategies/testing.py +71 -0
- structa_maestro/telemetry.py +800 -0
- structa_maestro/validation/__init__.py +0 -0
- structa_maestro/validation/cross_field.py +463 -0
- structa_maestro/validation/validator.py +531 -0
- structa_maestro-0.2.0.dist-info/METADATA +394 -0
- structa_maestro-0.2.0.dist-info/RECORD +55 -0
- structa_maestro-0.2.0.dist-info/WHEEL +4 -0
- structa_maestro-0.2.0.dist-info/entry_points.txt +2 -0
- structa_maestro-0.2.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Confidence normalization and zero-dependency empirical confidence calibration."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from structa_maestro.confidence.calibration import (
|
|
6
|
+
CALIBRATION_ARTIFACT_VERSION,
|
|
7
|
+
DEFAULT_CALIBRATION_MIN_SAMPLES,
|
|
8
|
+
MAX_CALIBRATION_ARTIFACT_BYTES,
|
|
9
|
+
MIN_CALIBRATION_SAMPLES_FLOOR,
|
|
10
|
+
BinningStrategy,
|
|
11
|
+
CalibrationBin,
|
|
12
|
+
CalibrationMetadata,
|
|
13
|
+
CalibrationMethod,
|
|
14
|
+
CalibrationMetrics,
|
|
15
|
+
CalibrationModel,
|
|
16
|
+
CalibrationSample,
|
|
17
|
+
ConfidenceCalibrator,
|
|
18
|
+
HistogramParameters,
|
|
19
|
+
IsotonicParameters,
|
|
20
|
+
PlattParameters,
|
|
21
|
+
compute_calibration_metrics,
|
|
22
|
+
fit_calibrator,
|
|
23
|
+
)
|
|
24
|
+
from structa_maestro.confidence.normalizer import (
|
|
25
|
+
ConfidenceNormalizationResult,
|
|
26
|
+
ConfidenceNormalizer,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
__all__ = [
|
|
30
|
+
"CALIBRATION_ARTIFACT_VERSION",
|
|
31
|
+
"DEFAULT_CALIBRATION_MIN_SAMPLES",
|
|
32
|
+
"MAX_CALIBRATION_ARTIFACT_BYTES",
|
|
33
|
+
"MIN_CALIBRATION_SAMPLES_FLOOR",
|
|
34
|
+
"BinningStrategy",
|
|
35
|
+
"CalibrationBin",
|
|
36
|
+
"CalibrationMetadata",
|
|
37
|
+
"CalibrationMethod",
|
|
38
|
+
"CalibrationMetrics",
|
|
39
|
+
"CalibrationModel",
|
|
40
|
+
"CalibrationSample",
|
|
41
|
+
"ConfidenceCalibrator",
|
|
42
|
+
"ConfidenceNormalizationResult",
|
|
43
|
+
"ConfidenceNormalizer",
|
|
44
|
+
"HistogramParameters",
|
|
45
|
+
"IsotonicParameters",
|
|
46
|
+
"PlattParameters",
|
|
47
|
+
"compute_calibration_metrics",
|
|
48
|
+
"fit_calibrator",
|
|
49
|
+
]
|