executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
evaluationEvaluate Unstructured partition outputs against gold outputs for text extraction, element types, table structure, and optional object detection metrics.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a user needs to compare existing Unstructured outputs with gold-standard outputs, interpret metric TSVs, or decide whether optional object-detection evaluation is appropriate.
metadata.category_depth effects.Table elements, metadata.text_as_html, or metadata.table_as_cells.torch and layout dump JSON files are available.unstructured.metrics.evaluate can pull the torch-backed object detection module.Table elements with table metadata or Deckerd-style cell data.scripts/evaluate_elements_pair.py for a dependency-light summary.references/metrics-reference.md.references/troubleshooting.md before changing the partitioning pipeline.python sub-skills/evaluation/scripts/evaluate_elements_pair.py \
--prediction predicted.json \
--gold gold.json \
--table-source auto
The helper reports element count differences, text accuracy, missing text, element-type frequency match, and table structure metrics when compatible table data exists. It intentionally avoids importing unstructured.metrics.evaluate so ordinary text/element/table checks do not require torch.
For package-level TSV outputs, instantiate the metric calculator, pass prediction and gold directories, and write to an output directory outside the runtime skill tree:
from unstructured.metrics.evaluate import TextExtractionMetricsCalculator
TextExtractionMetricsCalculator("predictions", "gold", document_type="json").calculate(
export_dir="metrics",
visualize_progress=False,
display_agg_df=False,
)
Use the detailed calculator table and output filenames in references/metrics-reference.md.