MycroftAI / adapt

Adapt Intent Parser
Apache License 2.0
712 stars 154 forks source link

Make Dates (relative and explicit) core concepts of adapt #30

Open clusterfudge opened 8 years ago

traverseda commented 8 years ago

I was thinking about this as well.

You might want to take a look at

https://github.com/scrapinghub/dateparser/tree/master/data/languagefiles

It's a bunch of YAML formatted language files for natural language parsing of dates. They've put in a bunch of work on it, and if you can use it for adapt that's great.

Being able to pass a function as an intent parser could be interesting. Not sure how that works with your code base, but if "dateparser.parse" returns None/False/[] then you know it's not a date intent.

I don't know how you check intents, so that might not work, and would certainly be less elegant then building a system using adapt, but it could work pretty well for quick hacks of all types.