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

Feature Request: Support for series of consecutive dates #55

Open
tarung-ml opened this issue Jun 23, 2017 · 2 comments
Open

Feature Request: Support for series of consecutive dates #55

tarung-ml opened this issue Jun 23, 2017 · 2 comments

Comments

@tarung-ml
Copy link

If the query contains a series of day/dates an interval maybe a more reasonable result. For example, "for next Thursday and Friday night" should return interval interval(June 29, June 30). Currently, the return value is one of the dates and a bit ambiguous. Another example is a query "18th, 19th and 20th Dec" which currently returns December 20th and "18th Dec, 19th Dec and 20th Dec" currently returns December 19th. A better result would be an interval(December 18, December 20) in both cases.

@patapizza
Copy link
Contributor

Hi @tarung-ml,

Consider these examples:
"I'm available next Thursday and Friday night"
"I'm available 18th Dec, 19th Dec and 20th Dec"

Returning an interval would be wrong here.
As an alternative, you should be able to convert the returned entities to one interval based on start/end, the grain and the normalized time.

The "18th, 19th and 20th Dec" is not supported today. Given the examples above, it could return three different entities for the same text span.

@chessai
Copy link
Contributor

chessai commented Jan 12, 2021

I'm also not sure it should return an interval in general. I do think it may make sense to have a dimension for series of times like this

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

3 participants