config¶
This module defines the task enum and the configuration models used to control evaluation.
Key symbols¶
TaskType¶
Allowed enum values:
SINGLE_FEATURESINGLE_ENTITYMULTI_ENTITY
FeatureRule¶
Constructor highlights:
- required:
feature_name,feature_type - validated allowed
feature_typevalues:text,number,date,category - side effect: none
- error conditions: invalid
feature_typeraisesValueError
MatchingConfig¶
Constructor highlights:
- defaults to weighted matching with threshold
0.5 - used only by
MULTI_ENTITY - side effect: none
- current caveat:
matching_modeis not explicitly validated beyond normal type coercion
ClassificationConfig¶
Constructor highlights:
positive_labelswitches the metric function into one-vs-rest mode for that label when presentaverage_strategyexists in the model but is not currently consumed in the metric path
RunConfig¶
Constructor highlights:
- required:
task_type,feature_rules index_key_nameis required at runtime for indexed task typesmatching_configis relevant only forMULTI_ENTITYlog_directory_pathcontrols whereRunLoggerwrites filesgrouping_key_namesexists but is not currently used in the runtime path
Generated API details¶
TaskType
¶
Bases: str, Enum
Enumeration of supported task types.
Source code in src/extraction_testing/config.py
32 33 34 35 36 37 | |
FeatureRule
¶
Bases: BaseModel
Configuration for how to compare a single feature.
Source code in src/extraction_testing/config.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
validate_feature_type(value)
¶
Validate feature_type.
Source code in src/extraction_testing/config.py
60 61 62 63 64 65 66 | |
MatchingConfig
¶
Bases: BaseModel
Configuration for entity matching.
Source code in src/extraction_testing/config.py
69 70 71 72 73 74 75 | |
ClassificationConfig
¶
Bases: BaseModel
Configuration for classification reporting.
Source code in src/extraction_testing/config.py
78 79 80 81 82 | |
RunConfig
¶
Bases: BaseModel
Top-level run configuration.
Source code in src/extraction_testing/config.py
85 86 87 88 89 90 91 92 93 94 | |