当我遵循“自然语言分类器服务入门”指南时,我在第 2 阶段遇到了问题:创建和训练分类器:
$ curl -i -u "<username>":"<password>" \
-F training_data=@<path_to_file>/weather_data_train.csv \
-F training_metadata="{\"language\":\"en\",\"name\":\"TutorialClassifier\"}" \
"https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers"
它返回:
{
"code" : 400,
"error" : "Data too small",
"description" : "The number of training entries received = 1, which is smaller
than the required minimum of 5"
}
任何人都可以帮助如何解决这个问题。非常感谢~