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

"今年中秋节和明年国庆节的天气如何",会识别为timespan #24

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

Comments

@yangjianxin1
Copy link

如题"今年中秋节和明年国庆节的天气如何",会识别为timespan,用户应该是想识别出一个timestamp的list

@QixinLi
Copy link

QixinLi commented Nov 21, 2019

这个库的逻辑是,如果在句子里找到两个时间词,输出就是两个时间词分别对应的timestamp组成的timespan。只有一个时间词那就是timestamp。

今年中秋节和明年国庆节的输出为

'timespan': ['2019-09-13 00:00:00', '2020-10-01 00:00:00']

要想将其作为timestamp,可以将列表里的两个元素分别取出来。

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