dongrixinyu / JioNLP

中文 NLP 预处理、解析工具包,准确、高效、易用 A Chinese NLP Preprocessing & Parsing Package www.jionlp.com

Home Page:http://www.jionlp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] 提取时间实体‘晚上十一点钟’,会定位到日期的‘2023-10-01’,正确的应该是今天的日期加十一点钟?

locasxe opened this issue · comments

import jionlp as jio
res =jio.ner.extract_time('晚上十一点钟')
print(res)

返回结果:
[{'text': '晚上十一点钟', 'offset': [0, 6], 'type': 'time_point', 'detail': {'type': 'time_point', 'definition': 'accurate', 'time': ['2023-10-01 23:00:00', '2023-10-01 23:59:59']}}]

**期望行为(Expectation)**
[{'text': '晚上十一点钟', 'offset': [0, 6], 'type': 'time_point', 'detail': {'type': 'time_point', 'definition': 'accurate', 'time': ['2023-12-07 23:00:00', '2023-12-07 23:59:59']}}]

Thx a lot