PsychiatryNLPKit.analysis.AnalysisResult

class PsychiatryNLPKit.analysis.AnalysisResult(results=<factory>, sections=<factory>, analyses_run=<factory>, errors=<factory>)[source]

Container for batch analysis output.

Attributes:
results: Merged per-section metrics keyed by section name, then metric name.

Matches the {section {metric: value}} return shape of individual analysis functions.

sections: Section names in order (from TextData.section_names). analyses_run: Analysis function names that executed successfully. errors: Per-function failures mapped as function_name error message.

__init__(results=<factory>, sections=<factory>, analyses_run=<factory>, errors=<factory>)

Methods

__init__([results, sections, analyses_run, ...])

Attributes

results

sections

analyses_run

errors

results: dict[str, dict[str, float]]
sections: list[str]
analyses_run: list[str]
errors: dict[str, str]
__init__(results=<factory>, sections=<factory>, analyses_run=<factory>, errors=<factory>)