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
如果发现时间解析有bug,那就来这里试一下另一个工具吧 JioNLP
import time import jionlp as jio res = jio.parse_time('今年9月', time_base={'year': 2021}) res = jio.parse_time('零三年元宵节晚上8点半', time_base=time.time()) res = jio.parse_time('一万个小时') res = jio.parse_time('100天之后', time.time()) res = jio.parse_time('每周五下午4点', time.time()) print(res) # {'type': 'time_span', 'definition': 'accurate', 'time': ['2021-09-01 00:00:00', '2021-09-30 23:59:59']} # {'type': 'time_point', 'definition': 'accurate', 'time': ['2003-02-15 20:30:00', '2003-02-15 20:30:59']} # {'type': 'time_delta', 'definition': 'accurate', 'time': {'hour': 10000.0}} # {'type': 'time_span', 'definition': 'blur', 'time': ['2021-10-22 00:00:00', 'inf']} # {'type': 'time_period', 'definition': 'accurate', 'time': {'delta': {'day': 7}, # 'point': {'time': ['2021-07-16 16:00:00', '2021-07-16 16:59:59'], 'string': '周五下午4点'}}}
The text was updated successfully, but these errors were encountered:
不支持java
Sorry, something went wrong.
No branches or pull requests
如果发现时间解析有bug,那就来这里试一下另一个工具吧
JioNLP
The text was updated successfully, but these errors were encountered: