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

“4月23”和“4月23之后”都无法正确解析 #48

Closed
gudieaofei opened this issue Apr 8, 2022 · 3 comments
Closed

“4月23”和“4月23之后”都无法正确解析 #48

gudieaofei opened this issue Apr 8, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@gudieaofei
Copy link

gudieaofei commented Apr 8, 2022

描述(Description)

描述你遇到了什么问题(Please describe your issue here)

  1. 版本(Version):
    pyhton: 3.9.12
    jionlp: 1.3.53

  2. jionlp的调用代码与输入文本(Code & Text):
    jio.ner.extract_time("4月23之后", time_base=time.time(), with_parsing=True)
    jio.parse_time("4月23之后", ret_future=True, time_base=time.time())

  3. 调用报错日志如下(Log):
    只能解析成4月份,无法解析到23号,5点之后也是,只能解析成5点,“之后”这个关键词丢了,“之前”反而没有这个问题,但时间点包含了5:00:00~5:59:59,正常应该不包含这个小时点的

@gudieaofei gudieaofei added the bug Something isn't working label Apr 8, 2022
@dongrixinyu
Copy link
Owner

这个问题主要是,应该把 4越23 解析成公历还是农历 的问题。因为之前确实出现过两种解析文本。例如,5月1是劳动节,3月3是花朝节 。 这种情况下,需要语义来解决,单纯工具很难处理。
不过上述问题还比较普遍,我还需要考虑一下如何解决。

@dongrixinyu dongrixinyu changed the title [BUG]“4月23”和“4月23之后”都无法正确解析 “4月23”和“4月23之后”都无法正确解析 Apr 10, 2022
@dongrixinyu dongrixinyu pinned this issue Apr 10, 2022
@dongrixinyu
Copy link
Owner

#43

@dongrixinyu
Copy link
Owner

该问题已修复,可验证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants