Models¶
These are the core models used in structx
for data extraction and results.
ExtractionResult¶
Container for extraction results
Attributes:
Name | Type | Description |
---|---|---|
data |
Union[DataFrame, List[T]]
|
Extracted data (DataFrame or list of model instances) |
failed |
DataFrame
|
DataFrame with failed extractions |
model |
Type[T]
|
Generated or provided model class |
Source code in structx/core/models.py
Other Models¶
ExtractionGuide
¶
Guide for structured extraction
Source code in structx/core/models.py
ExtractionRequest
¶
Request for model generation
Source code in structx/core/models.py
ExtractionResult
dataclass
¶
Container for extraction results
Attributes:
Name | Type | Description |
---|---|---|
data |
Union[DataFrame, List[T]]
|
Extracted data (DataFrame or list of model instances) |
failed |
DataFrame
|
DataFrame with failed extractions |
model |
Type[T]
|
Generated or provided model class |
Source code in structx/core/models.py
ModelField
¶
Definition of a field in the extraction model
Source code in structx/core/models.py
QueryAnalysis
¶
QueryRefinement
¶
Refined query with structural information