comtravo / ctparse

Parse natural language time expressions in python
https://www.comtravo.com
MIT License
131 stars 24 forks source link

strings ctparse can't parse #103

Closed gabrielelanaro closed 2 years ago

gabrielelanaro commented 3 years ago

A small collection of problematic time expressions that should be supported

between 6- 8 AM

CTParse(2021-02-06 X:X (X/X) - 2021-02-07 X:X (X/X), (101, 108, 136, 108, 138, 'ruleDOM1', 'ruleDOM1', 'ruleNamedNumberDuration', 'ruleLatentDOM', 'ruleDOMDate', 'ruleAbsorbFromInterval'), 4.582549598503859)
ctparse.ctparse("Mo. 13 Jan.13:50")                                                                                                   
Out[7]: CTParse(2021-01-13 X:X (X/X), (102, 108, 103, 'ruleDOM1', 'ruleNamedMonth', 'ruleDOMMonth', 'ruleLatentDOY', 'ruleNamedDOW', 'ruleDOWDate'), 27.889635370185275)
sebastianmika commented 2 years ago

between 6-8 AM parses correctly in 3.0.2

13 Jan.13:50 gets at least the date right in 3.0.2 - 13 Jan. 13:50 also gets the time;

closing for now