Data Module (PsychiatryNLPKit.data)
Data containers for organizing clinical text and managing pre-computed linguistic features.
The TextData class is the central data structure — it holds named sections of text,
lazy-loads NLP models on first access, and caches all computed features (POS tags,
embeddings, constituency parses) so multiple analyses share the same computation.
Core Classes
|
A named text segment within a larger document. |
|
Main text data container with lazy-computed linguistic properties. |
|
Container for an image with optional metadata. |
Utilities
Split a paragraph into sentences using a regex. |