我有一个分类任务,它将一个字符串作为输入并将其分类为一些标签。训练数据如下:
Text1: label_1
Text2: label_2
Text3: label_1
当我使用 weka 时,很多分类给出了例外:
weka.core.UnsupportedAttributeTypeException: weka.classifiers.functions.MultilayerPerceptron: Cannot handle string attributes!
at weka.core.Capabilities.test(Capabilities.java:979)
at weka.core.Capabilities.test(Capabilities.java:868)
at weka.core.Capabilities.test(Capabilities.java:1084)
at weka.core.Capabilities.test(Capabilities.java:1022)
at weka.core.Capabilities.testWithFail(Capabilities.java:1301)