Commit 874ee8f1 authored by Bruno López Trigo's avatar Bruno López Trigo

Solucionado bug que xeraba explicacións alternativas extra

parent b508f8d3
#Tue, 20 Mar 2018 14:33:58 +0100
#Tue, 20 Mar 2018 17:42:04 +0100
C\:\\Users\\brilemau\\Documents\\repos\\ExpliClas-TFG\\codigo\\WekaParser-v2=
......@@ -3,28 +3,28 @@
<type>diabetes</type>
<attributes>
<attribute name="preg">
<value>2</value>
<value>0</value>
</attribute>
<attribute name="plas">
<value>120</value>
<value>137</value>
</attribute>
<attribute name="pres">
<value>0</value>
<value>40</value>
</attribute>
<attribute name="skin">
<value>0</value>
<value>35</value>
</attribute>
<attribute name="insu">
<value>0</value>
<value>168</value>
</attribute>
<attribute name="mass">
<value>40</value>
<value>43.1</value>
</attribute>
<attribute name="pedi">
<value>1.183</value>
<value>2.288</value>
</attribute>
<attribute name="age">
<value>38</value>
<value>33</value>
</attribute>
</attributes>
</problem>
<h1>Explanation</h1><p>Beer is type IPA because system detected that its strength and bitterness are high.</p><ul></ul><p>This beer could be confused with following types.</p><ul><li>it is unlikely (2.0 %) to be type Lager</li><li>it is unlikely (2.0 %) to be type Pilsner</li><li>it is unlikely (10.0 %) to be type Barleywine</li></ul>
\ No newline at end of file
<h1>Explanation</h1><p>Beer is type Stout because system detected that its strength is session or standard and that its color is black.</p><p>It is almost always (98.0 %) type Stout however it can be of the following types.</p><ul><li>it is just as likely to be type Stout as type Porter considering its color slightly lower</li></ul><p>This beer could be confused with following types.</p><ul><li>it is unlikely (2.0 %) to be type Belgian Strong Ale</li></ul>
\ No newline at end of file
<h1>Explanation</h1><p>Diabetes is type Negative because system detected that its age and diabetes pedigree function are medium or high, that its plasma glucose concentration is medium, that its body mass index is high and that its number of times pregnant is low.</p><ul></ul><p>This diabetes could be confused with following types.</p><ul><li>it is likely (21.199999 %) to be type Positive</li></ul>
\ No newline at end of file
<h1>Explanation</h1><p>Diabetes is type Positive because system detected that its body mass index and plasma glucose concentration are high and that its diastolic blood pressure is low.</p><ul></ul><p>This diabetes could be confused with following types.</p><ul><li>it is likely (38.80597 %) to be type Negative</li></ul>
\ No newline at end of file
<h1>Explanation</h1><p>Glass is type vehic wind float because system detected that its potassium, barium and magnesium are low, medium or high, that its silicon and aluminum are medium or high, that its refractive index is low and that its sodium is medium.</p><p>It is eventually (41.17647 %) type vehic wind float however it can be of the following types.</p><ul><li>it is likely (21.008406 %) to be type build wind float considering its refractive index slightly lower</li></ul><p>This glass could be confused with following types.</p><ul><li>it is likely (23.529411 %) to be type build wind non-float</li><li>it is unlikely (5.882353 %) to be type tableware</li></ul>
\ No newline at end of file
<h1>Explanation</h1><p>Glass is type build wind non-float because system detected that its sodium and barium are low, medium or high, that its magnesium is medium or high, that its potassium is low and that its refractive index is low or high.</p><p>It is many times (61.84211 %) type build wind non-float however it can be of the following types.</p><ul><li>it is unlikely (2.0242915 %) to be type containers considering its refractive index slightly lower</li></ul><p>This glass could be confused with following types.</p><ul><li>it is likely (21.052631 %) to be type build wind float</li><li>it is unlikely (7.8947363 %) to be type vehic wind float</li><li>it is unlikely (3.9473681 %) to be type tableware</li><li>it is unlikely (7.692308 %) to be type headlamps</li></ul>
\ No newline at end of file
......@@ -3,31 +3,31 @@
<type>glass</type>
<attributes>
<attribute name="RI">
<value>1.52121</value>
<value>1.53393</value>
</attribute>
<attribute name="Na">
<value>14.03</value>
<value>12.3</value>
</attribute>
<attribute name="Mg">
<value>3.76</value>
<value>0</value>
</attribute>
<attribute name="Al">
<value>0.58</value>
<value>1</value>
</attribute>
<attribute name="Si">
<value>71.79</value>
<value>70.16</value>
</attribute>
<attribute name="K">
<value>0.11</value>
<value>0.12</value>
</attribute>
<attribute name="Ca">
<value>9.65</value>
<value>16.19</value>
</attribute>
<attribute name="Ba">
<value>0</value>
</attribute>
<attribute name="Fe">
<value>0</value>
<value>0.24</value>
</attribute>
</attributes>
</problem>
......@@ -3,13 +3,13 @@
<type>beer</type>
<attributes>
<attribute name="Color">
<value>24</value>
<value>30</value>
</attribute>
<attribute name="Bitterness">
<value>60</value>
<value>29</value>
</attribute>
<attribute name="Strength">
<value>0.08</value>
<value>0.046</value>
</attribute>
</attributes>
</problem>
......@@ -6,7 +6,7 @@
<antecedents>
<antecedent>
<attribute name="Strength">
<value>0.08</value>
<value>0.046</value>
<valuetxt>Strength</valuetxt>
<maxValue>0.136</maxValue>
<minValue>0.035</minValue>
......@@ -43,101 +43,226 @@
</properties>
</attribute>
<interval>
<leftValue>0.07</leftValue>
<rightValue>0.091</rightValue>
<leftValue>0.035</leftValue>
<rightValue>0.07</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>0.0675</leftValue>
<rightValue>0.09</rightValue>
<leftValue>0.035</leftValue>
<rightValue>0.0525</rightValue>
</posibleinterval>
<posibleinterval>
<leftValue>0.0525</leftValue>
<rightValue>0.0675</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
<antecedent>
<attribute name="Bitterness">
<value>60.0</value>
<valuetxt>Bitterness</valuetxt>
<maxValue>250.0</maxValue>
<minValue>7.0</minValue>
<attribute name="Color">
<value>30.0</value>
<valuetxt>Color</valuetxt>
<maxValue>45.0</maxValue>
<minValue>0.0</minValue>
<modified>false</modified>
<properties>
<property>
<valueTxt>Low</valueTxt>
<valueTxt>Pale</valueTxt>
<interval>
<leftValue>7.0</leftValue>
<rightValue>21.0</rightValue>
<leftValue>0.0</leftValue>
<rightValue>3.0</rightValue>
</interval>
</property>
<property>
<valueTxt>Low-Medium</valueTxt>
<valueTxt>Straw</valueTxt>
<interval>
<leftValue>21.0</leftValue>
<rightValue>32.5</rightValue>
<leftValue>3.0</leftValue>
<rightValue>7.5</rightValue>
</interval>
</property>
<property>
<valueTxt>Medium-High</valueTxt>
<valueTxt>Amber</valueTxt>
<interval>
<leftValue>32.5</leftValue>
<rightValue>47.5</rightValue>
<leftValue>7.5</leftValue>
<rightValue>19.0</rightValue>
</interval>
</property>
<property>
<valueTxt>High</valueTxt>
<valueTxt>Brown</valueTxt>
<interval>
<leftValue>19.0</leftValue>
<rightValue>29.0</rightValue>
</interval>
</property>
<property>
<valueTxt>Black</valueTxt>
<interval>
<leftValue>47.5</leftValue>
<rightValue>250.0</rightValue>
<leftValue>29.0</leftValue>
<rightValue>45.0</rightValue>
</interval>
</property>
</properties>
</attribute>
<interval>
<leftValue>48.0</leftValue>
<rightValue>250.0</rightValue>
<leftValue>29.0</leftValue>
<rightValue>45.0</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>47.5</leftValue>
<rightValue>250.0</rightValue>
<leftValue>29.0</leftValue>
<rightValue>45.0</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
</antecedents>
<consequent>
<code>4.0</code>
<name>4.0</name>
<text>IPA</text>
<percentage>86.0</percentage>
<instances>48.0</instances>
<wrong>3.0</wrong>
<code>5.0</code>
<name>5.0</name>
<text>Stout</text>
<percentage>98.0</percentage>
<instances>51.0</instances>
<wrong>1.0</wrong>
<mistakes>
<mistake>
<code>2.0</code>
<name>2.0</name>
<text>Lager</text>
<code>8.0</code>
<name>8.0</name>
<text>Belgian Strong Ale</text>
<percentage>2.0</percentage>
<instances>0.0</instances>
<wrong>0.0</wrong>
<mistakes/>
</mistake>
</mistakes>
</consequent>
</rule>
<rule>
<antecedents>
<antecedent>
<attribute name="Strength">
<value>0.046</value>
<valuetxt>Strength</valuetxt>
<maxValue>0.136</maxValue>
<minValue>0.035</minValue>
<modified>false</modified>
<properties>
<property>
<valueTxt>Session</valueTxt>
<interval>
<leftValue>0.035</leftValue>
<rightValue>0.0525</rightValue>
</interval>
</property>
<property>
<valueTxt>Standard</valueTxt>
<interval>
<leftValue>0.0525</leftValue>
<rightValue>0.0675</rightValue>
</interval>
</property>
<property>
<valueTxt>High</valueTxt>
<interval>
<leftValue>0.0675</leftValue>
<rightValue>0.09</rightValue>
</interval>
</property>
<property>
<valueTxt>Very high</valueTxt>
<interval>
<leftValue>0.09</leftValue>
<rightValue>0.136</rightValue>
</interval>
</property>
</properties>
</attribute>
<interval>
<leftValue>0.035</leftValue>
<rightValue>0.07</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>0.035</leftValue>
<rightValue>0.0525</rightValue>
</posibleinterval>
<posibleinterval>
<leftValue>0.0525</leftValue>
<rightValue>0.0675</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
<antecedent>
<attribute name="Color">
<value>28.5</value>
<valuetxt>Color</valuetxt>
<maxValue>45.0</maxValue>
<minValue>0.0</minValue>
<modified>true</modified>
<properties>
<property>
<valueTxt>Pale</valueTxt>
<interval>
<leftValue>0.0</leftValue>
<rightValue>3.0</rightValue>
</interval>
</property>
<property>
<valueTxt>Straw</valueTxt>
<interval>
<leftValue>3.0</leftValue>
<rightValue>7.5</rightValue>
</interval>
</property>
<property>
<valueTxt>Amber</valueTxt>
<interval>
<leftValue>7.5</leftValue>
<rightValue>19.0</rightValue>
</interval>
</property>
<property>
<valueTxt>Brown</valueTxt>
<interval>
<leftValue>19.0</leftValue>
<rightValue>29.0</rightValue>
</interval>
</property>
<property>
<valueTxt>Black</valueTxt>
<interval>
<leftValue>29.0</leftValue>
<rightValue>45.0</rightValue>
</interval>
</property>
</properties>
</attribute>
<interval>
<leftValue>17.0</leftValue>
<rightValue>29.0</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>19.0</leftValue>
<rightValue>29.0</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
</antecedents>
<consequent>
<code>7.0</code>
<name>7.0</name>
<text>Porter</text>
<percentage>0.0</percentage>
<instances>50.0</instances>
<wrong>1.0</wrong>
<mistakes>
<mistake>
<code>3.0</code>
<name>3.0</name>
<text>Pilsner</text>
<code>5.0</code>
<name>5.0</name>
<text>Stout</text>
<percentage>2.0</percentage>
<instances>0.0</instances>
<wrong>0.0</wrong>
<mistakes/>
</mistake>
<mistake>
<code>6.0</code>
<name>6.0</name>
<text>Barleywine</text>
<percentage>10.0</percentage>
<instances>0.0</instances>
<wrong>0.0</wrong>
<mistakes/>
</mistake>
</mistakes>
</consequent>
</rule>
......
......@@ -6,7 +6,7 @@
<antecedents>
<antecedent>
<attribute name="plas">
<value>120.0</value>
<value>137.0</value>
<valuetxt>Plasma glucose concentration</valuetxt>
<maxValue>199.0</maxValue>
<minValue>0.0</minValue>
......@@ -36,19 +36,19 @@
</properties>
</attribute>
<interval>
<leftValue>99.0</leftValue>
<rightValue>127.0</rightValue>
<leftValue>127.0</leftValue>
<rightValue>157.0</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>60.0</leftValue>
<rightValue>120.0</rightValue>
<leftValue>120.0</leftValue>
<rightValue>199.0</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
<antecedent>
<attribute name="mass">
<value>40.0</value>
<value>43.1</value>
<valuetxt>Body mass index</valuetxt>
<maxValue>67.1</maxValue>
<minValue>0.0</minValue>
......@@ -78,7 +78,7 @@
</properties>
</attribute>
<interval>
<leftValue>33.1</leftValue>
<leftValue>29.9</leftValue>
<rightValue>67.1</rightValue>
</interval>
<posibleintervals>
......@@ -89,56 +89,10 @@
</posibleintervals>
</antecedent>
<antecedent>
<attribute name="age">
<value>38.0</value>
<valuetxt>Age</valuetxt>
<maxValue>81.0</maxValue>
<minValue>21.0</minValue>
<modified>false</modified>
<properties>
<property>
<valueTxt>Low</valueTxt>
<interval>
<leftValue>21.0</leftValue>
<rightValue>41.0</rightValue>
</interval>
</property>
<property>
<valueTxt>Medium</valueTxt>
<interval>
<leftValue>41.0</leftValue>
<rightValue>61.0</rightValue>
</interval>
</property>
<property>
<valueTxt>High</valueTxt>
<interval>
<leftValue>61.0</leftValue>
<rightValue>81.0</rightValue>
</interval>
</property>
</properties>
</attribute>
<interval>
<leftValue>34.0</leftValue>
<rightValue>81.0</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>41.0</leftValue>
<rightValue>61.0</rightValue>
</posibleinterval>
<posibleinterval>
<leftValue>61.0</leftValue>
<rightValue>81.0</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
<antecedent>
<attribute name="pedi">
<value>1.183</value>
<valuetxt>Diabetes pedigree function</valuetxt>
<maxValue>2.42</maxValue>
<attribute name="pres">
<value>40.0</value>
<valuetxt>Diastolic blood pressure</valuetxt>
<maxValue>122.0</maxValue>
<minValue>0.0</minValue>
<modified>false</modified>
<properties>
......@@ -146,89 +100,50 @@
<valueTxt>Low</valueTxt>
<interval>
<leftValue>0.0</leftValue>
<rightValue>0.7</rightValue>
<rightValue>40.0</rightValue>
</interval>
</property>
<property>
<valueTxt>Medium</valueTxt>
<interval>
<leftValue>0.7</leftValue>
<rightValue>1.4</rightValue>
</interval>
</property>
<property>
<valueTxt>High</valueTxt>
<interval>
<leftValue>1.4</leftValue>
<rightValue>2.42</rightValue>
</interval>
</property>
</properties>
</attribute>
<interval>
<leftValue>0.561</leftValue>
<rightValue>2.42</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>0.7</leftValue>
<rightValue>1.4</rightValue>
</posibleinterval>
<posibleinterval>
<leftValue>1.4</leftValue>
<rightValue>2.42</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
<antecedent>
<attribute name="preg">
<value>2.0</value>
<valuetxt>Number of times pregnant</valuetxt>
<maxValue>17.0</maxValue>
<minValue>0.0</minValue>
<modified>false</modified>
<properties>
<property>
<valueTxt>Low</valueTxt>
<interval>
<leftValue>0.0</leftValue>
<rightValue>9.0</rightValue>
<leftValue>40.0</leftValue>
<rightValue>80.0</rightValue>
</interval>
</property>
<property>
<valueTxt>High</valueTxt>
<interval>
<leftValue>9.0</leftValue>
<rightValue>17.0</rightValue>
<leftValue>80.0</leftValue>
<rightValue>122.0</rightValue>
</interval>
</property>
</properties>
</attribute>
<interval>
<leftValue>0.0</leftValue>
<rightValue>6.0</rightValue>
<rightValue>61.0</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>0.0</leftValue>
<rightValue>9.0</rightValue>
<rightValue>40.0</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
</antecedents>
<consequent>
<code>1.0</code>
<name>tested_negative</name>
<text>Negative</text>
<percentage>78.799995</percentage>
<instances>4.0</instances>
<code>2.0</code>
<name>tested_positive</name>
<text>Positive</text>
<percentage>61.19403</percentage>
<instances>15.0</instances>
<wrong>1.0</wrong>
<mistakes>
<mistake>
<code>2.0</code>
<name>tested_positive</name>
<text>Positive</text>
<percentage>21.199999</percentage>
<code>1.0</code>
<name>tested_negative</name>
<text>Negative</text>
<percentage>38.80597</percentage>
<instances>0.0</instances>
<wrong>0.0</wrong>
<mistakes/>
......
This diff is collapsed.
......@@ -28,7 +28,7 @@ import simplenlg.realiser.english.Realiser;
/**
*
* Constructor e realizador lingüístico
*
*