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
描述(Description)
ret_future(bool): 返回偏向未来的时间,如 周一 可按 下周一 进行解析。 今天 2024-04-16 query='五月十号' ret_future=true, 期望出的是 2024-05-10, 现状却出 2025-05-10
周一
下周一
import jionlp as jio # now = '2024-04-16 19:59:39' res = jio.parse_time('五月十号', time_base=datetime.datetime.now(), ret_future=True) print(res) # res = {'type': 'time_point', 'definition': 'accurate', 'time': ['2025-05-10 00:00:00', '2025-05-10 23:59:59']} # 问题:今年五月十号还没到,为什么直接出了明年五月十号? # 期望:解析为 2024-05-10
The text was updated successfully, but these errors were encountered:
把参数设 false就可以了
Sorry, something went wrong.
No branches or pull requests
描述(Description)
ret_future(bool): 返回偏向未来的时间,如
周一
可按下周一
进行解析。今天 2024-04-16
query='五月十号'
ret_future=true, 期望出的是 2024-05-10, 现状却出 2025-05-10
The text was updated successfully, but these errors were encountered: