PsychiatryNLPKit.analysis.adjective_sentence_length
- PsychiatryNLPKit.analysis.adjective_sentence_length(syntax_trees, sections=None)[source]
Average length of adjective phrases (ADJP) per section.
- Notes:
Theoretical basis - Adjective phrase length reflects descriptive elaboration and modification depth. Shorter adjective phrases may indicate reduced descriptive richness.
- Args:
- syntax_trees: Dict mapping section names to lists of constituency parse
trees.
- sections: Sections to process.
Noneprocesses all sections in syntax_trees.
- Returns:
Dict mapping section names to a dict with key
"adjective_sentence_length". Empty sections receivefloat("nan").