Commit 3447b73e authored by Bruno López Trigo's avatar Bruno López Trigo

Solucionado bug en el cálculo de intervalos más probables dentro del LanguageRealiser

parent 244085ad
#Fri, 23 Feb 2018 12:58:52 +0100
#Mon, 26 Feb 2018 18:17:01 +0100
C\:\\Users\\brilemau\\Documents\\repos\\TFG-ExpliClas\\codigo\\WekaParser-v1=
C\:\\Users\\brilemau\\Documents\\repos\\ExpliClas-TFG\\codigo\\WekaParser-v1=
......@@ -3,7 +3,7 @@
<antecedents>
<antecedent>
<attribute name="Strength">
<value>0.04</value>
<value>0.038</value>
<textValue>Session</textValue>
<maxValue>0.136</maxValue>
<minValue>0.035</minValue>
......@@ -40,13 +40,13 @@
</attribute>
<interval>
<leftValue>0.035</leftValue>
<rightValue>0.07</rightValue>
<rightValue>0.057</rightValue>
</interval>
</antecedent>
<antecedent>
<attribute name="Color">
<value>20.0</value>
<textValue>Brown</textValue>
<value>10.0</value>
<textValue>Amber</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>6.0</leftValue>
<rightValue>17.0</rightValue>
</interval>
</antecedent>
</antecedents>
<consequent>
<code>7.0</code>
<text>7.0</text>
<code>2.0</code>
<text>2.0</text>
</consequent>
</rule>
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/brilemau/Documents/repos/ExpliClas-TFG/codigo/WekaParser-v1/src/wekaparser/v1/SpecificObject.java</file>
<file>file:/C:/Users/brilemau/Documents/repos/ExpliClas-TFG/codigo/WekaParser-v1/src/wekaparser/v1/WekaParserV1.java</file>
</group>
</open-files>
</project-private>
......@@ -81,6 +81,7 @@ public class LanguageRealiser implements LanguageRealiserInterface {
phrases.add(sentence);
fullCoincidence = false;
labelList.clear();
}
......@@ -145,7 +146,14 @@ public class LanguageRealiser implements LanguageRealiserInterface {
System.out.println(this.realiser.realiseSentence(consequent));
//System.out.println(this.realiser.realiseSentence(consequent));
NLGElement data = nlgFactory.createSentence("This classification is derived from the following data");
System.out.println(this.realiser.realiseSentence(data));
for(int i=0; i<antecedent.size(); i+=2){
System.out.println(this.realiser.realiseSentence(antecedent.get(i)));
}
return consequent;
......
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