Recognizers-Text icon indicating copy to clipboard operation
Recognizers-Text copied to clipboard

[FR DateTimeV2] Failing to recognize certain ambiguous spelled-out hours as times

Open cahann opened this issue 4 years ago • 4 comments

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 avatar Feb 09 '21 22:02 cahann

@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).

tellarin avatar Feb 10 '21 02:02 tellarin

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)

srandal avatar Jun 04 '21 20:06 srandal

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" } ] } }

srandal avatar Aug 10 '21 03:08 srandal

@tellarin, @nawanas, working on this

aitelint avatar Dec 06 '21 06:12 aitelint