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

时间识别会添加未来或滞后时间的功能吗? #20

Open
leofionn opened this issue Oct 30, 2019 · 1 comment
Open

时间识别会添加未来或滞后时间的功能吗? #20

leofionn opened this issue Oct 30, 2019 · 1 comment

Comments

@leofionn
Copy link

>>> txt = '二十日,下午三点表示,明天九点'
>>> times = ex.extract_time(txt)
>>> times
'{"type": "timespan", "timespan": ["2019-10-20 00:00:00", "2019-10-30 15:00:00"]
}'
>>> txt = '今天是九月十八号,在二十号,将举办'
>>> times = ex.extract_time(txt)
>>> times
'{"type": "timespan", "timespan": ["2019-10-30 00:00:00", "2019-09-18 00:00:00"]

希望能加上一个判定,如果出现今天,昨天等词,可以更改时间基准。。。
(如果有好办法能识别也希望大家告诉我一下([email protected])。。因为最近在做,被折磨疯了。)
再次感谢作者!!!!!

@CreditTone
Copy link

这个匹配时间很多都匹配不上

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

No branches or pull requests

2 participants