我是spyder的新手,并试图弄清楚如何安装sklearn_crfsuite。这是我在spyder控制台安装时遇到的错误:
命令: conda安装sklearn_crfsuite
Solving environment: ...working... failed
PackagesNotFoundError: The following packages are not available from current channels:
- sklearn_crfsuite;
间谍版本: 3.2.8
有人能帮帮我吗?
我正在尝试在win7上安装scrapy。一种依赖是python-crfsuite。当我运行时:
pip install python-crfsuite==0.8.4
它反复失败,最终给出:
copying pycrfsuite\__init__.py -> build\lib.win32-2.7\pycrfsuite
running build_ext
building 'pycrfsuite._pycrfsuite' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka
我正在从这个link实现RASA weatherbot,我在尝试运行RASA weatherbot时遇到错误。我的错误越来越小。 Exception: Not all required packages are installed. To use this pipeline, you need to install the missing dependencies. Please install sklearn_crfsuite 我已经安装了sklearn_crfsuite,但是仍然收到这个错误。我不知道怎么修,请帮帮忙。
我使用sklearns crfsuite来计算f1、精确度和召回率分数,但有一个异常。仅出于测试目的,我给出了相同的测试值和预测值。 from sklearn_crfsuite import scorers
from sklearn_crfsuite import metrics
cls = [i for i, _ in enumerate(CLASSES)]
cls.append(7)
cls.append(8)
print(metrics.flat_classification_report(
test["y"], test["y"], lab
从我在jcrfsuite示例中给出的POS标记示例中了解到的情况。培训文件是选项卡分隔的,第一个标记是标签。但我不明白大集群的事。有人能帮我在训练文件中指定记号吗?
例子如下:
O BigCluster00Big群集00000000000000 NextBig群集0100 NextBig群集01000101 NextBig群集01000101 NextBig群集010001010101011111 POSTagDict N POSTagDict N POSTagDict X^POSTagDict^POSTagDict$POSTagDict V 1-预测下一次t=0上限
测试文件格式:
好了!B
我已经建立了一个句子边界检测分类器。对于序列标记,我使用了一个条件随机场。对于超参数优化,我想使用RandomizedSearchCV。我的培训数据包括6个附加注释的文本。我将所有6个文本合并到一个令牌列表中。对于实现,我遵循了中的一个示例。在这里,我的简化代码:
from sklearn_crfsuite import CRF
from sklearn_crfsuite import metrics
from sklearn.metrics import make_scorer
from sklearn.model_selection import RandomizedSearchCV
fr
我在Windows764位的Anaconda Spyder Python2.7中运行代码。
但是当我运行这段代码时:
!ls -lh ./training3.crfsuite
我收到了这个错误:
'ls' is not recognized as an internal or external command, operable program or batch file.
有人知道为什么吗?
谢谢。
我试着做一些意图的提取/识别。我已经安装了所有的依赖项(我相信),但是它仍然给了我错误:
File "C:\Users\user\.spyder-py3\chatbot\Outlook\rasa_nlu\components.py", line 65, in validate_requirements
"Please install {}".format(", ".join(failed_imports)))
Exception: Not all required packages are installed. To use this