Open ChanceNCounter opened 5 years ago
Thanks to this forum post by user tiredoftry for discovering this via asking about the weather
i think the problem might be somewhere in the nice_date utils, doesn't sound like it is in extract_datetime because "yesterday" wasn't handled at all
fix for extracting "yesterday" and "X days ago" available in lingua_franca
i'm able to extract the "X days ago" part but i'm facing issues while dealing with "X days later" but " in X days" works fine. P.S - I'm using SpaCy to process the string
Suggest migrating this to Lingua Franca and editing to reflect the parts Jarbas has fixed, unless "yesterday" is regarded as critical enough to warrant porting that fix back here.
Good call. Yesterday we started pushing for getting lingua-franca used directly by core so it's definitely better to continue the work there.
https://github.com/MycroftAI/mycroft-core/blob/a3e35d736b0426f33b7fc1d1883be38e4b650b0b/mycroft/util/lang/parse_en.py#L667
Several cases not yet implemented and consequently parsing incorrectly: