当前位置:   article > 正文

No such file or directory: ‘C:\\Users\\***/.pkuseg\\postag\\featureIndex.txt_0_pkuseg-python v0.0.16

pkuseg-python v0.0.16

在调用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'

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/669563
推荐阅读
相关标签
  

闽ICP备14008679号