vertebrae.extractors.structured
Explicit structured-output extractor contracts and adapters.
Classes
Declarative description of one structured extractor output. |
|
Per-parent structured unit embeddings from one named output. |
|
Wrap a callable returning explicit structured outputs. |
|
Structured extractor for per-parent matrices already stored in dataset inputs. |
Module Contents
- class vertebrae.extractors.structured.StructuredOutputSpec[source]
Declarative description of one structured extractor output.
- class vertebrae.extractors.structured.StructuredEmbeddingOutput[source]
Per-parent structured unit embeddings from one named output.
- class vertebrae.extractors.structured.CallableStructuredExtractor(name, transform_fn, output_specs, recipe_data=None, streaming_safe=True, modality='unknown', extractor_type='custom_structured', cache_identity=None)[source]
Wrap a callable returning explicit structured outputs.
- Parameters:
name (str)
transform_fn (Callable[[Any], Any])
output_specs (Iterable[StructuredOutputSpec])
recipe_data (Optional[Dict[str, Any]])
streaming_safe (bool)
modality (str)
extractor_type (str)
cache_identity (Optional[str])
- class vertebrae.extractors.structured.PrecomputedStructuredExtractor(output_specs, name='precomputed_structured', modality='unknown')[source]
Bases:
CallableStructuredExtractorStructured extractor for per-parent matrices already stored in dataset inputs.
- Parameters:
output_specs (Iterable[StructuredOutputSpec])
name (str)
modality (str)