Live data from Hacker News

Show HN: Duckling – Open-source datetime expression parsing

duckling-lib.org

61–70 of 70 posts

Re: Show HN: Duckling – Open-source datetime expression parsing

#65
post #64

If you're having a big party tomorrow at three thirty people are coming over you may be a half hour late.

Haha, nice example! If you want to do this you'd better use our full platform Wit.ai [1], that will arbitrate competition between the datetime entity (`tomorrow at three`) and the number_of_person entity!

[1] https://wit.ai

Re: Show HN: Duckling – Open-source datetime expression parsing

#66
post #17

> Intervals (like June 12-13) I wrote a Python library to do things like >>> r = Recurrence('June-July 2014').intersect(Recurrence('Monday to Friday')) >>> datetime.date(2014, 6, 13) in r True >>> datetime.date(2014, 6, 14) in r False If anyone is interested in hacking on it with me, send me an email and I'll try to get it up on github.

That sounds really useful.

Re: Show HN: Duckling – Open-source datetime expression parsing

#68
post #58

Earlier quoted context omitted.

Even though the demo website expects the whole input to be a time expression, Duckling actually detects substrings inside a larger block of text. We've mostly used it on short sentences, but it should work on larger inputs, like articles. I'd recommend splitting very large inputs into sentences though.

Demo site updated, now shows partial parses.

Great! I'm sure we will use it soon. Thanks!

Re: Show HN: Duckling – Open-source datetime expression parsing

#69
post #64

If you're having a big party tomorrow at three thirty people are coming over you may be a half hour late.

As a human, without a colon that thing is ambiguous.

It can be:

    tomorrow at three thirty, people are coming over
or: tomorrow at three, thirty people are coming over

Re: Show HN: Duckling – Open-source datetime expression parsing

#70
post #69
post #64

If you're having a big party tomorrow at three thirty people are coming over you may be a half hour late.

As a human, without a colon that thing is ambiguous. It can be: tomorrow at three thirty, people are coming over or: tomorrow at three, thirty people are coming over

Totally. I guess that was my point, that it's completely ambiguous, so I was curious to see which interpretation the algorithm picked.
Post reply on HN