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

月末,年末无法识别 #22

Open
Howard-guo opened this issue Aug 31, 2019 · 1 comment
Open

月末,年末无法识别 #22

Howard-guo opened this issue Aug 31, 2019 · 1 comment

Comments

@Howard-guo
Copy link

3月末识别为3月,本月末识别为本月

看正则中是有相关判断的,不知道是什么问题

PS:我在windows下跑

@dongrixinyu
Copy link

换一个工具,JioNLP

import jionlp as jio
import time
text = '3月末'
print(jio.parse_time(text, time_base=time.time()))
# {'type': 'time_span', 'definition': 'blur', 'time': ['2021-03-25 00:00:00', '2021-03-31 23:59:59']}

# 本月末
# {'type': 'time_point', 'definition': 'accurate', 'time': ['2021-07-25 00:00:00', '2021-07-31 23:59:59']}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants