赞
踩
在调用pkuseg模块时,自动下载postag.zip到用户名C:/Users/***/.pkuseg文件夹下
Downloading: "https://github.com/lancopku/pkuseg-python/releases/download/v0.0.16/postag.zip" to C:/Users/***/.pkuseg/postag.zip
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='objects.githubusercontent.com', port=443): Read timed out. (read timeout=5)
出现上面下载超时时可以手动下载https://github.com/lancopku/pkusegpython/releases/download/v0.0.16/postag.zip将下载后的postag.zip放到C:/Users/***/.pkuseg/文件夹下,解压要解压到postag文件夹内,否则会出现以下找不到featureIndex.txt_0的错误。即,压缩文件夹里的features.pkl和weights.npz文件放到C:/Users/***/.pkuseg/postag/文件夹下
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\***/.pkuseg\\postag\\featureIndex.txt_0'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。