准备好文件total_word_feature_extractor_zh.dat,将它放到指定目录。
专题中上一篇文章已经提过利用python setup.py install来安装的问题,还是逐一安装感觉更可控。难点是安装mitie。
pip install mitie报错:
Building wheel for mitie (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'd:\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-2kau9q3r\\mitie_ce10b05bf4a748c7b8d0ddce9b0d68b0\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-2kau9q3r\\mitie_ce10b05bf4a748c7b8d0ddce9b0d68b0\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"')