pkuseg-python icon indicating copy to clipboard operation
pkuseg-python copied to clipboard

pkuseg多领域中文分词工具; The pkuseg toolkit for multi-domain Chinese word segmentation

Results 115 pkuseg-python issues
Sort by recently updated
recently updated
newest added

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\Users\\Downloads\pkuseg-python-master\pkuseg-python-master> PS C:\Users\\Downloads\pkuseg-python-master\pkuseg-python-master> python setup.py build_ext -i Traceback (most recent call last): File "setup.py",...

ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-et09_yi1/pkuseg/setup.py'"'"'; __file__='"'"'/tmp/pip-install-et09_yi1/pkuseg/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-et09_yi1/pkuseg/pip-egg-info cwd: /tmp/pip-install-et09_yi1/pkuseg/ Complete...

理论上来讲效果好是一件好事,但是实际测试来讲会把不存在的地名也认作为地名 ``` import pkuseg seg = pkuseg.pkuseg(postag=True) text = seg.cut('广场镇是河北天津衡水冲绳东京的旧地狱和亚特兰斯地吗?') for word, flag in text: if flag == 'ns': print (word) ``` 输出结果为: ``` 广场镇 河北 天津 衡水 冲绳 东京...

旅游细分领域的数据集是怎么获取的和构建的呢

TypeError: train() got an unexpected keyword argument 'nthread' ``` import pkuseg # 训练文件为'train.txt' # 测试文件为'test.txt' # 加载'./pretrained'目录下的模型,训练好的模型保存在'./models',训练10轮 pkuseg.train('train.txt', 'test.txt', './models', train_iter=10, init_model='./pretrained') ```

not found ‘’unigram_word.txt' 请问是什么原因呢?

Traceback (most recent call last): File "D:/pycharm-workspace/matplotlib/lac/Test.py", line 6, in seg = pkuseg.pkuseg(postag=True) # 开启词性标注功能 AttributeError: type object 'pkuseg' has no attribute 'pkuseg' my pkuseg version is 0.0.25 an numpy...

您好,我刚刚下载了pkuseg,并尝试跑一下样例,发现直接import pkuseg会报错: ModuleNotFoundError: No module named 'pkuseg.feature_extractor' 不知这是不是feature_extractor是.pyx格式的原因; 我又尝试了在import pkuseg之前,import pyximport pyximport.install(),但这也会报错: ImportError: Building module pkuseg.inference failed: ["distutils.errors.CompileError: command 'gcc' failed with exit status 1\n"] pkuseg 0.0.25 MacOS 10.15.4