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

输入"明天下午一点参加下半年销售大会 " 提示ValueError: the string 明天下午一点参加下半年销售大会。 is illegal, because the hour-min-sec stringcan NOT be designated to a specific day. #227

Open
jiangxia207 opened this issue Aug 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jiangxia207
Copy link

提问题时,请尊重我!把必要的信息,什么环境,输入具体什么文本,运行什么函数讲清楚!
不要甩一句话,说的不清不楚,我无从定位,浪费时间。这样的提单我将直接close。

描述(Description)

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

  1. 版本(Version):
  • python 版本: 3.10.12
  • jionlp 版本: 1.5.14
  1. jionlp的调用代码与输入文本(Code & Text):
print(jio.parse_time(sys.argv[1], time_base=time.time()))

3. 调用报错日志如下(Log):

Traceback (most recent call last):
File "/opt/fenmiaoReport_dev/timepy.py", line 12, in
main()
File "/opt/fenmiaoReport_dev/timepy.py", line 7, in main
print(jio.parse_time(sys.argv[1], time_base=time.time()))
File "/usr/local/lib/python3.10/dist-packages/jionlp/gadget/time_parser.py", line 809, in call
self.parse_time_span_point(time_string)
File "/usr/local/lib/python3.10/dist-packages/jionlp/gadget/time_parser.py", line 1071, in parse_time_span_point
blur_time = self.parse_time_point(
File "/usr/local/lib/python3.10/dist-packages/jionlp/gadget/time_parser.py", line 1610, in parse_time_point
raise ValueError('the string {} is illegal, because the hour-min-sec string'
ValueError: the string 今天下午参加下半年销售大会。 is illegal, because the hour-min-sec stringcan NOT be designated to a specific day.



**期望行为(Expectation)**

> 返回明天下午一点




@jiangxia207 jiangxia207 added the bug Something isn't working label Aug 9, 2024
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

1 participant