We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
解析前: 2019-04-19 解析后: {"type": "timestamp", "timestamp": "2019-09-04 00:00:00"} 时间不一致
The text was updated successfully, but these errors were encountered:
是年/月/日格式无法识别,若转化为年-月-日格式,则可
Sorry, something went wrong.
针对中间月份带有0x的形式,如2019-04-19更改TimeUnit.py代码464 rule = u"[0-9]?[0-9]?[0-9]{2}-((10)|(11)|(12)|(0?[1-9]))-((?<!\d))([0-3][0-9]|[1-9])"和474 rule = u"[0-9]?[0-9]?[0-9]{2}/((10)|(11)|(12)|(0?[1-9]))/((?<!\d))([0-3][0-9]|[1-9])"
换一个工具,JioNLP
import jionlp as jio import time text = '2019-04-19' 或 '2019/04/19' print(jio.parse_time(text, time_base=time.time())) # {'type': 'time_point', 'definition': 'accurate', 'time': ['2019-04-19 00:00:00', '2019-04-19 23:59:59']}
No branches or pull requests
解析前: 2019-04-19
解析后: {"type": "timestamp", "timestamp": "2019-09-04 00:00:00"}
时间不一致
The text was updated successfully, but these errors were encountered: