Commit 23528e2a authored by Bruno López Trigo's avatar Bruno López Trigo

Engadido README.txt con instruccións de execución

parent e125ae15
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="WekaParser-v1" default="default" basedir=".">
<description>Builds, tests, and runs the project WekaParser-v1.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar: JAR building
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="WekaParser-v1-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
......@@ -2,13 +2,6 @@
<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/inputsystem/PropertiesReader.java</file>
<file>file:/C:/Users/brilemau/Documents/repos/ExpliClas-TFG/codigo/WekaParser-v1/resources/config.properties</file>
<file>file:/C:/Users/brilemau/Documents/repos/ExpliClas-TFG/codigo/WekaParser-v1/src/inputsystem/Attribute.java</file>
<file>file:/C:/Users/brilemau/Documents/repos/ExpliClas-TFG/codigo/WekaParser-v1/src/languagerealiser/LanguageRealiser.java</file>
<file>file:/C:/Users/brilemau/Documents/repos/ExpliClas-TFG/codigo/WekaParser-v1/src/rulesystem/Rule.java</file>
<file>file:/C:/Users/brilemau/Documents/repos/ExpliClas-TFG/codigo/WekaParser-v1/src/wekaparser/v1/Controller.java</file>
</group>
<group/>
</open-files>
</project-private>
......@@ -90,7 +90,7 @@
</interval>
</property>
<property>
<valueTxt>Standar</valueTxt>
<valueTxt>Standard</valueTxt>
<interval>
<leftValue>0.0525</leftValue>
<rightValue>0.0675</rightValue>
......
......@@ -5,15 +5,15 @@
<entries>
<entry>
<attribute>Color</attribute>
<value>22</value>
<value>4</value>
</entry>
<entry>
<attribute>Bitterness</attribute>
<value>22</value>
<value>20</value>
</entry>
<entry>
<attribute>Strength</attribute>
<value>0.049</value>
<value>0.03</value>
</entry>
</entries>
</problem>
......@@ -3,7 +3,7 @@
<antecedents>
<antecedent>
<attribute name="Strength">
<value>0.049</value>
<value>0.03</value>
<maxValue>0.136</maxValue>
<minValue>0.035</minValue>
<properties>
......@@ -15,7 +15,7 @@
</interval>
</property>
<property>
<valueTxt>Standar</valueTxt>
<valueTxt>Standard</valueTxt>
<interval>
<leftValue>0.0525</leftValue>
<rightValue>0.0675</rightValue>
......@@ -54,7 +54,7 @@
</antecedent>
<antecedent>
<attribute name="Color">
<value>22.0</value>
<value>4.0</value>
<maxValue>45.0</maxValue>
<minValue>0.0</minValue>
<properties>
......@@ -96,28 +96,72 @@
</properties>
</attribute>
<interval>
<leftValue>17.0</leftValue>
<rightValue>29.0</rightValue>
<leftValue>0.0</leftValue>
<rightValue>6.0</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>19.0</leftValue>
<rightValue>29.0</rightValue>
<leftValue>0.0</leftValue>
<rightValue>3.0</rightValue>
</posibleinterval>
<posibleinterval>
<leftValue>3.0</leftValue>
<rightValue>7.5</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
<antecedent>
<attribute name="Bitterness">
<value>20.0</value>
<maxValue>250.0</maxValue>
<minValue>7.0</minValue>
<properties>
<property>
<valueTxt>Low</valueTxt>
<interval>
<leftValue>7.0</leftValue>
<rightValue>21.0</rightValue>
</interval>
</property>
<property>
<valueTxt>Low-Medium</valueTxt>
<interval>
<leftValue>21.0</leftValue>
<rightValue>32.5</rightValue>
</interval>
</property>
<property>
<valueTxt>Medium-High</valueTxt>
<interval>
<leftValue>32.5</leftValue>
<rightValue>47.5</rightValue>
</interval>
</property>
<property>
<valueTxt>High</valueTxt>
<interval>
<leftValue>47.5</leftValue>
<rightValue>250.0</rightValue>
</interval>
</property>
</properties>
</attribute>
<interval>
<leftValue>7.0</leftValue>
<rightValue>26.0</rightValue>
</interval>
<posibleintervals>
<posibleinterval>
<leftValue>7.0</leftValue>
<rightValue>21.0</rightValue>
</posibleinterval>
</posibleintervals>
</antecedent>
</antecedents>
<consequent>
<code>7.0</code>
<text>7.0</text>
<percentage>98.0</percentage>
<mistakes>
<mistake>
<code>6.0</code>
<text>5.0</text>
<percentage>2.0</percentage>
<mistakes/>
</mistake>
</mistakes>
<code>1.0</code>
<text>1.0</text>
<percentage>100.0</percentage>
<mistakes/>
</consequent>
</rule>
<h1>Beer Classification</h1><h2>Explanation</h2><p>Beer is type 7.0 the 98.0% of times because system detected that its Strength is Session or Standar and that its Color is Brown.</p><p>It also can be 5.0 the 2.0% of times.</p><p>This classification is derived from the following data.</p><p><ul><li>possible intervals are [0.035, 0.0525] as "Session" and [0.0525, 0.0675] as "Standar" while its Strength is between 0.035 and 0.07</li><li>possible interval is [19.0, 29.0] as "Brown" while its Color is between 17.0 and 29.0</li></ul></p>
<h1>Beer Classification</h1><h2>Explanation</h2><p>Beer is type 1.0 the 100.0% of times because system detected that its Strength is Session or Standard, that its Color is Pale or Straw and that its Bitterness is Low.</p><p>This classification is derived from the following data.</p><p><ul><li>possible intervals are [0.035, 0.0525] as "Session" and [0.0525, 0.0675] as "Standard" while its Strength is between 0.035 and 0.07</li><li>possible intervals are [0.0, 3.0] as "Pale" and [3.0, 7.5] as "Straw" while its Color is between 0.0 and 6.0</li><li>possible interval is [7.0, 21.0] as "Low" while its Bitterness is between 7.0 and 26.0</li></ul></p>
Para executar o programa:
java -jar wekaparser.jar arquivo_weka xml_entrada arquivo_log
arquivo_weka : arquivo que xera o weka coa árbore de clasificación e coa matriz de confusión
xml_entrada : sería o xml cos datos de entrada, podes utilizar o arquivo baixo a carpeta resources
arquivo_log : sería o xml que se escribe para manter un log
Estos serían os tres argumentos que se deben indicar. Un exemplo sería o seguinte:
java -jar wekaparser.jar
"C:\Users\brilemau\Downloads\ALL-infer.txt"
"C:\Users\brilemau\Documents\repos\ExpliClas-TFG\codigo\WekaParser-v1\resources\inputexample.xml"
"C:\Users\brilemau\Documents\repos\ExpliClas-TFG\codigo\WekaParser-v1\resources\log.xml"
\ No newline at end of file
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