Comments (4)
这个问题是由于numpy版本冲突导致的,为了避免这个问题,我们在最新版本里增加了版本限制,您可以重新安装使用。
from pkuseg-python.
这个问题解决后发现出现了问题 #44
两者之间是循环。
from pkuseg-python.
利用pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -U pkuseg安装
import pkuseg
seg = pkuseg.pkuseg()
text = "我爱北京***"
cut = seg.cut(text)
print(cut)Traceback (most recent call last):
File "E:/python/work/spider/bx/piggy.py", line 1, in
import pkuseg
File "D:\Program Files (x86)\Python\Anaconda3\lib\site-packages\pkuseg__init__.py", line 14, in
import pkuseg.trainer
File "D:\Program Files (x86)\Python\Anaconda3\lib\site-packages\pkuseg\trainer.py", line 19, in
import pkuseg.inference as _inf
File "init.pxd", line 918, in init pkuseg.inference
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
numpy版本与pkuseg不兼容,建议升级numpy版本到最新
from pkuseg-python.
我的pkuseg版本是0.0.22,numpy版本是 1.17.1,还是报这个异常,请问下这个这两个包需要下哪个版本的?
from pkuseg-python.
Related Issues (20)
- 能不能用自训练模型,对文件进行分词啊? HOT 1
- 打包缺少文件情况 FileNotFoundError: \\cache\\_MEI183882\\pkuseg\\dicts\\default.pkl' HOT 2
- 是否可以支持在 M1下使用 目前直接安装会报错。 HOT 2
- AttributeError: type object 'pkuseg' has no attribute 'pkuseg'
- TypeError: train() got an unexpected keyword argument 'nthread' HOT 1
- 词性标注效果过好 HOT 1
- Python3.9/3.9均无法pip安装成功 HOT 7
- 如何进行领域自适应训练? HOT 1
- 虚拟环境下使用出现FileNotFoundError,已单独下载postag还是无果
- cannot install in the environment of python 3.9 HOT 6
- pip install failed on Python 3.10.8 HOT 4
- 越训练,f-score越低 HOT 4
- pip install failed on Python 3.10.9 HOT 7
- 词性标注不准
- 预训练模型“default_v2”导入报错 HOT 2
- 祈使句/动宾短语,分词好像有些不对劲呢,望指点,谢谢
- 分词结果严重错误 HOT 5
- 词性输出错误
- Win10 3.10.14 安装失败 HOT 5
- Using Pre-Downloaded Domain Model is messy 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 pkuseg-python.