Skip to main content

Module semantic

Module semantic 

Source
Expand description

Level-3 (semantic) caption generation.

Produces high-level, human-readable descriptions of labelled activities, sleep periods, and mood events that occurred during the measurement window.

§Caption structure

Walking was detected between minutes 480 and 540.
Running occurred from minute 600 to 660.
Sleep during minutes 0 to 440.
The person logged their mood as calm at minute 300.

§Reference correspondence

This is a direct port of captioning.py::generate_semantic_caption.

Structs§

ActivityEvent
A labelled activity interval.
MoodEvent
A self-reported mood entry.
SleepEvent
A sleep interval.

Functions§

generate_semantic_caption
Generate a level-3 semantic caption.
parse_minutes
Parse a "HH:MM:SS" or ISO-8601 time string into minutes from midnight.