error loading svm learning configuration file in gate tool

核能气质少年 提交于 2019-12-12 03:24:08

问题


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> 

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.


回答1:


The problem is in the multiClassification2Binary string. There is a single glyph that contains two joined characters "fi" together. You probably copied the text from some pdf... Simply replace by fi and the error should go away.



来源:https://stackoverflow.com/questions/28470820/error-loading-svm-learning-configuration-file-in-gate-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!