Commit 3cddf2b5 authored by Bruno López Trigo's avatar Bruno López Trigo

Engadida corrección de bug que engadía intervalos extra na explicación en linguaxe natural

parent e79fae0c
......@@ -45,8 +45,8 @@
</antecedent>
<antecedent>
<attribute name="Color">
<value>20.0</value>
<textValue>Brown</textValue>
<value>40.0</value>
<textValue>Black</textValue>
<maxValue>45.0</maxValue>
<minValue>0.0</minValue>
<properties>
......@@ -88,13 +88,13 @@
</properties>
</attribute>
<interval>
<leftValue>17.0</leftValue>
<rightValue>29.0</rightValue>
<leftValue>29.0</leftValue>
<rightValue>45.0</rightValue>
</interval>
</antecedent>
</antecedents>
<consequent>
<code>7.0</code>
<text>7.0</text>
<code>5.0</code>
<text>5.0</text>
</consequent>
</rule>
......@@ -68,6 +68,7 @@ public class LanguageRealiser implements LanguageRealiserInterface {
Map<String, Float> map = labels;
for (Map.Entry<String, Float> entry : map.entrySet()) {
if(entry.getValue()==1.0 && !fullCoincidence){
intervals.clearCoordinates();
labelList.clear();
labelList.add(entry.getKey());
property = ant.getAttribute().getPropertyByTxt(entry.getKey());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment