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 @@ ...@@ -3,7 +3,7 @@
<antecedents> <antecedents>
<antecedent> <antecedent>
<attribute name="Strength"> <attribute name="Strength">
<value>0.04</value> <value>0.038</value>
<textValue>Session</textValue> <textValue>Session</textValue>
<maxValue>0.136</maxValue> <maxValue>0.136</maxValue>
<minValue>0.035</minValue> <minValue>0.035</minValue>
...@@ -40,13 +40,13 @@ ...@@ -40,13 +40,13 @@
</attribute> </attribute>
<interval> <interval>
<leftValue>0.035</leftValue> <leftValue>0.035</leftValue>
<rightValue>0.07</rightValue> <rightValue>0.057</rightValue>
</interval> </interval>
</antecedent> </antecedent>
<antecedent> <antecedent>
<attribute name="Color"> <attribute name="Color">
<value>20.0</value> <value>10.0</value>
<textValue>Brown</textValue> <textValue>Amber</textValue>
<maxValue>45.0</maxValue> <maxValue>45.0</maxValue>
<minValue>0.0</minValue> <minValue>0.0</minValue>
<properties> <properties>
...@@ -88,13 +88,13 @@ ...@@ -88,13 +88,13 @@
</properties> </properties>
</attribute> </attribute>
<interval> <interval>
<leftValue>17.0</leftValue> <leftValue>6.0</leftValue>
<rightValue>29.0</rightValue> <rightValue>17.0</rightValue>
</interval> </interval>
</antecedent> </antecedent>
</antecedents> </antecedents>
<consequent> <consequent>
<code>7.0</code> <code>2.0</code>
<text>7.0</text> <text>2.0</text>
</consequent> </consequent>
</rule> </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 { ...@@ -81,6 +81,7 @@ public class LanguageRealiser implements LanguageRealiserInterface {
phrases.add(sentence); phrases.add(sentence);
fullCoincidence = false;
labelList.clear(); labelList.clear();
} }
...@@ -145,7 +146,14 @@ public class LanguageRealiser implements LanguageRealiserInterface { ...@@ -145,7 +146,14 @@ public class LanguageRealiser implements LanguageRealiserInterface {
System.out.println(this.realiser.realiseSentence(consequent)); 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; 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