Comments (4)
fixed
from jionlp.
import jionlp as jio
result = jio.parse_time("上季度")
print(result)
Traceback (most recent call last):
File "F:/jio_start.py", line 8, in
result = jio.parse_time("上季度")
File "D:\ProgramData\Miniconda3\envs\py38\lib\site-packages\jionlp\gadget\time_parser.py", line 650, in call
self.parse_time_span_point(time_string)
File "D:\ProgramData\Miniconda3\envs\py38\lib\site-packages\jionlp\gadget\time_parser.py", line 717, in parse_time_span_point
blur_time = self.parse_time_point(
File "D:\ProgramData\Miniconda3\envs\py38\lib\site-packages\jionlp\gadget\time_parser.py", line 1171, in parse_time_point
raise ValueError('can not parse the string {}
.'.format(time_string))
ValueError: can not parse the string 上季度
.
from jionlp.
jio.parse_time('上季度')
{'type': 'time_span', 'definition': 'accurate', 'time': ['2021-04-01 00:00:00', '2021-06-30 23:59:59']}
from jionlp.
重新安装JioNLP,可以了
非常感谢!
from jionlp.
Related Issues (20)
- [BUG] import jionlp 时候会默认创建/.jionlp_logs文件夹,报permission denied HOT 2
- [BUG]最近一个月”,会只识别近一个月,落下了“最”这个字
- [BUG] HOT 1
- [技术咨询] HOT 3
- [BUG] 在docker容器中运行,超过一定的时间,比如隔天后,解析时间不正确。
- [BUG] HOT 1
- [BUG] 运行 jio.ner.extract_time('是一个十一点的事') 提取日期出错
- [BUG] remove_url 的功能不符合预期 HOT 1
- [BUG]2月份第二周 未支持 HOT 2
- [BUG]国家识别不出来,一些特殊地名无法识别 HOT 1
- 数据增强咨询
- [BUG]提取2024年冬至的时候,会提取到 2024年冬,实际提取到了 立冬的日期 HOT 1
- 已解决
- [功能请求]
- [BUG] HOT 4
- [BUG] ret_future 与预期不符 HOT 1
- [BUG] 日期解析错误 HOT 1
- [技术咨询] 关于多线程地址解析性能问题 HOT 1
- 时间解析问题 【年末、年初、月初、月末、年同期】相关
- [BUG]地址解析,文本:湖南永州市祁阳市梅溪镇湖南省祁阳县梅溪镇春光村十二组 解析不出来 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jionlp.