[FR DateTimeV2] Failing to recognize certain ambiguous spelled-out hours as times
When a time expression contains spelled-out hours, it is identified as a time for all but three hours. These are the three hours that are not recognized: • "une heure" • "seize heures" • "vingt et un heures" Note: These are ambiguous because French uses the same wording for durations
@cahann, can you provide some more context here? Maybe full sentence examples. As these are ambiguous by themselves, context would indicate if they should be treated as time. In the current design, if by themselves, they are treated as duration (which is a correct interpretation).
The original report was just from trying every hour in isolation, and noticing that those three behaved differently from the other hours. The difference does persist in some contexts though. Here's a context that shouldn't be ambiguous:
- Je dois être de retour au bureau à seize heures => duration
- Je dois être de retour au bureau à huit heures => time
(tested on a fr-fr app in LUIS)
SimpleConsole shows the same inconsistency for those sentences:
Je dois être de retour au bureau à seize heures { "Text": "seize heures", "Start": 35, "End": 46, "TypeName": "datetimeV2.duration", "Resolution": { "values": [ { "timex": "PT16H", "type": "duration", "value": "57600" } ] } }
Je dois être de retour au bureau à huit heures { "Text": "huit heures", "Start": 35, "End": 45, "TypeName": "datetimeV2.time", "Resolution": { "values": [ { "timex": "T08", "type": "time", "value": "08:00:00" }, { "timex": "T20", "type": "time", "value": "20:00:00" } ] } }
@tellarin, @nawanas, working on this