Revision: 666
http://dl-learner.svn.sourceforge.net/dl-learner/?rev=666&view=rev
Author: tonytacker
Date: 2008-02-28 15:55:17 -0800 (Thu, 28 Feb 2008)
Log Message:
-----------
small fix
Modified Paths:
--------------
trunk/src/dl-learner/org/dllearner/core/config/ConfigEntry.java
trunk/src/dl-learner/org/dllearner/core/config/StringSetConfigOption.java
Modified: trunk/src/dl-learner/org/dllearner/core/config/ConfigEntry.java
===================================================================
--- trunk/src/dl-learner/org/dllearner/core/config/ConfigEntry.java 2008-02-28 23:17:17 UTC (rev 665)
+++ trunk/src/dl-learner/org/dllearner/core/config/ConfigEntry.java 2008-02-28 23:55:17 UTC (rev 666)
@@ -57,7 +57,7 @@
* @return a formatted string
*/
public String toConfString(String componentName) {
- if (option.getName().equalsIgnoreCase("positiveExamples")) {
+ if (option.getName() == "positiveExamples") {
return option.getValueFormatting(value, 1);
} else if (option.getName() == "negativeExamples") {
return option.getValueFormatting(value, 2);
Modified: trunk/src/dl-learner/org/dllearner/core/config/StringSetConfigOption.java
===================================================================
--- trunk/src/dl-learner/org/dllearner/core/config/StringSetConfigOption.java 2008-02-28 23:17:17 UTC (rev 665)
+++ trunk/src/dl-learner/org/dllearner/core/config/StringSetConfigOption.java 2008-02-28 23:55:17 UTC (rev 666)
@@ -85,14 +85,14 @@
// positive examples
if (value != null && special == 1) {
for (String i : value) {
- back += "\n+" + i;
+ back += "\n+\"" + i + "\"";
}
return back + "\n";
}
// negative examples
if (value != null && special == 2) {
for (String i : value) {
- back += "\n-" + i;
+ back += "\n-\"" + i + "\"";
}
return back + "\n";
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|