Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
clusterfudge opened this issue Jun 12, 2016 · 1 comment
Open

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

clusterfudge opened this issue Jun 12, 2016 · 1 comment

Comments

@clusterfudge
Copy link
Collaborator

No description provided.

@traverseda
Copy link

traverseda commented Jun 13, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants