Time_NLP icon indicating copy to clipboard operation
Time_NLP copied to clipboard

礼拜* 无法识别

Open yuxuan2015 opened this issue 5 years ago • 2 comments

yuxuan2015 avatar Dec 04 '19 08:12 yuxuan2015

请输入需要识别的句子:礼拜一 2020-4-3-13-52-50 temp [] {"error": "no time pattern could be extracted."}

jelly-FF avatar Apr 03 '20 05:04 jelly-FF

换一个工具,JioNLP

import jionlp as jio
import time
text = '上个礼拜三'
print(jio.parse_time(text, time_base=time.time()))
# {'type': 'time_point', 'definition': 'accurate', 'time': ['2021-07-21 00:00:00', '2021-07-21 23:59:59']}

dongrixinyu avatar Jul 26 '21 06:07 dongrixinyu