From: <ku...@us...> - 2008-08-29 20:10:52
|
Revision: 1144 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1144&view=rev Author: kurzum Date: 2008-08-29 20:10:50 +0000 (Fri, 29 Aug 2008) Log Message: ----------- servercommit Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java Modified: trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java 2008-08-29 20:03:14 UTC (rev 1143) +++ trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java 2008-08-29 20:10:50 UTC (rev 1144) @@ -63,7 +63,7 @@ private static Logger logger = Logger.getRootLogger(); // size of randomly choosen negative examples compared to positives - public static double NEGFACTOR = 2.0; + public static double NEGFACTOR = 200.0; // different negative Ex (randomizes) each run, if set to false private static final boolean DEVELOP = true; @@ -84,6 +84,7 @@ logger.info("Start"); Files.appendFile(file, "neg Ex random: "+RANDOMNEGATIVES+"\n"); + Files.appendFile(file, "negfactor : "+NEGFACTOR+"\n"); //String fileURL = new File(ontologyFile).toURI().toString(); @@ -140,7 +141,7 @@ if(negativeEx.size()<=3) { System.out.println(target); waitForInput(); - Files.appendFile(file, "SKIPPED "+target + " negEX "+negativeEx+"\n"); + Files.appendFile(file, "SKIPPED "+target + "\n\t\t negEX "+negativeEx+"\n"); continue; } // reasoningService.prepareSubsumptionHierarchy(); @@ -185,7 +186,7 @@ //for (EvaluatedDescription description : conceptresults) { // System.out.println(description); //} - Files.appendFile(file, target +"\t::\t"+ d+"\n" ); + Files.appendFile(file, target +"\n\t\t"+ d+"\n" ); } private static LearnSPARQLConfiguration getConfForSparql(NamedClass c) { @@ -400,10 +401,11 @@ } public static void waitForInput(){ - System.out.println("PRESS ENTER TO CONTINUE"); + byte[] b = new byte[100]; try{ if(WAITFORINPUT) + System.out.println("PRESS ENTER TO CONTINUE"); System.in.read(b); }catch (Exception e) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |