Commit ea8fe3d
committed
Implement time normalization and timer duration normalization in SlotExtractor
- Added time format normalization for alarm times (730 pm -> 19:30, 5 30 am -> 05:30)
- Added timer duration normalization to seconds (5 mins -> 300, 6 hr -> 21600)
- Fixed space/dot separated time formats (10 30 am -> 10:30, 5.30 pm -> 17:30)
- Context-aware processing: alarms return HH:MM format, timers return seconds
- Comprehensive pattern matching for various time/duration formats
- Updated both Kotlin and Swift SlotExtractor implementations1 parent 2e752f8 commit ea8fe3d
File tree
2 files changed
+1518
-239
lines changed- examples
- whisper.android/app/src/main/java/com/whispercppdemo/intent
- whisper.swiftui/whisper.swiftui.demo/Intent
2 files changed
+1518
-239
lines changed
0 commit comments