PsychiatryNLPKit.analysis.noun_group_count

PsychiatryNLPKit.analysis.noun_group_count(syntax_trees, sections=None)[source]

Average number of noun phrases (NP) per sentence per section.

Notes:

Theoretical basis - Noun phrase count reflects nominal elaboration and referential density. Reduced noun phrase usage may indicate impoverished content.

Args:
syntax_trees: Dict mapping section names to lists of constituency parse

trees.

sections: Sections to process. None processes all sections in

syntax_trees.

Returns:

Dict mapping section names to a dict with key "noun_group_count". Empty sections receive float("nan").