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

weeks(下周五)无法识别 #21

Open
cohakuel opened this issue Aug 29, 2019 · 5 comments
Open

weeks(下周五)无法识别 #21

cohakuel opened this issue Aug 29, 2019 · 5 comments

Comments

@cohakuel
Copy link

cohakuel commented Aug 29, 2019

image

@cohakuel cohakuel reopened this Aug 29, 2019
@bytemain
Copy link

安装 arrow==0.14.0 解决

@cohakuel
Copy link
Author

cohakuel commented Sep 1, 2019 via email

@bytemain
Copy link

bytemain commented Sep 1, 2019

pip install arrow==0.14.0

就可以了呀

@bytemain
Copy link

bytemain commented Oct 6, 2019

新版的 arrow 把 replace 方法中的复数形式都改为了 shift.

兼容了最新版的包 >=0.15
https://github.com/BuddingLab/time_converter

@dongrixinyu
Copy link

换一个工具,JioNLP

import jionlp as jio
import time
text = '下周五'
print(jio.parse_time(text, time_base=time.time()))
# {'type': 'time_point', 'definition': 'accurate', 'time': ['2021-08-06 00:00:00', '2021-08-06 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

3 participants