facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to parse rules like "every two hours" , "every two days" etc

gongshaojie12 opened this issue · comments

Hi,I want to parse the rules like "every two hours" , "every two days", "every two weeks", "every two months" etc. I'm a newbie and don't know what to do . Please help me, thanks!

this is a known lacking feature of duckling. I was working on it some months ago but couldn't devote too much time to it. I'm not even sure my approach was the best.

Hi @chessai Thank you very much. Can you share your approach?

I noticed that predEveryFrom in Time/Helper.hs can handle periodic events, but I don't know how to use it.