在Gate工具中加载svm学习配置文件时出错 [英] error loading svm learning configuration file in gate tool
问题描述
我是机器学习的新手.当我尝试通过Gate学习时,它显示出一些错误.学习配置文件如下.
I am new to machine learning. When I tried learning through gate, it is showing some error. The learning configuration file is given below.
<?xml version="1.0"?>
<ML-CONFIG>
<SURROUND value="false"/>
<FILTERING ratio='0.2' dis='far'/>
<EVALUATION method="holdout" runs="2" ratio="0.66"/>
<multiClassification2Binary method="one-vs-anothers" thread-pool-size="2"/>
<PARAMETER name="thresholdProbabilityBoundary" value="1.0"/>
<PARAMETER name="thresholdProbabilityEntity" value="1.0"/>
<PARAMETER name="thresholdProbabilityClassification" value="0.0"/>
<IS-LABEL-UPDATABLE value="true"/>
<IS-NLPFEATURELIST-UPDATABLE value="true"/>
<ENGINE nickname="SVM" implementationName="SVMLibSvmJava" options = "-s 0 -t 1 -d 4 -c 5 -tau 1.2"/>
</ML-CONFIG>
培训属性位于此文件中.当我在没有包含 multiclass xml标记的行的情况下进行训练时,它正在工作.添加此行时,显示如下错误
Training attributes are inside this file. When I trained without the line containing multiclass xml tag it is working. when this line is added, an error is showing like below
Caused by: org.jdom.input.JDOMParseException: Error on line 6 of document file:/home/cognicor/vagateplugin/scripts/ML_script/learningsvm: Element type "multiClassi" must be followed by either attribute specifications, ">" or "/>".
我不知道这件事以及为什么会发生并寻求解决方案.
I am not aware of this thing and why it happens and seek for a solution.
推荐答案
问题出在multiClassification2Binary
字符串中.单个字形fi
包含两个连接的字符"fi"在一起.您可能是从pdf文件中复制了文本...只需将fi
替换为fi
,错误就会消失.
The problem is in the multiClassification2Binary
string. There is a single glyph fi
that contains two joined characters "fi" together. You probably copied the text from some pdf... Simply replace fi
by fi
and the error should go away.
这篇关于在Gate工具中加载svm学习配置文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!