From: <ku...@us...> - 2008-08-29 20:15:00
|
Revision: 1145 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1145&view=rev Author: kurzum Date: 2008-08-29 20:14:57 +0000 (Fri, 29 Aug 2008) Log Message: ----------- server commit Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java Modified: trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java 2008-08-29 20:10:50 UTC (rev 1144) +++ trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java 2008-08-29 20:14:57 UTC (rev 1145) @@ -58,9 +58,9 @@ @SuppressWarnings("unchecked") public SortedSet<Description> getMoreSpecialConcepts(Description concept) { - if(subsumptionHierarchyDown==null) return new TreeSet<Description>(); - else if( subsumptionHierarchyDown.get(concept)==null) return new TreeSet<Description>(); - else return (TreeSet<Description>) subsumptionHierarchyDown.get(concept).clone(); + if(subsumptionHierarchyDown==null) { return new TreeSet<Description>();} + else if( subsumptionHierarchyDown.get(concept)==null){ return new TreeSet<Description>();} + else {return (TreeSet<Description>) subsumptionHierarchyDown.get(concept).clone();} } public void improveSubsumptionHierarchy() { Modified: trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java 2008-08-29 20:10:50 UTC (rev 1144) +++ trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java 2008-08-29 20:14:57 UTC (rev 1145) @@ -131,8 +131,8 @@ AutomaticNegativeExampleFinderOWL ane = new AutomaticNegativeExampleFinderOWL( positiveEx, reasoningService); //ane.makeNegativeExamplesFromSuperClasses(target); - if(RANDOMNEGATIVES)ane.makeNegativeExamplesFromAllOtherInstances(); - else ane.makeNegativeExamplesFromSuperClasses(target); + if(RANDOMNEGATIVES){ane.makeNegativeExamplesFromAllOtherInstances();} + else{ ane.makeNegativeExamplesFromSuperClasses(target);} //double correct = () // System.out.println((positiveEx.size()*NEGFACTOR)); negativeEx = ane.getNegativeExamples( @@ -404,9 +404,10 @@ byte[] b = new byte[100]; try{ - if(WAITFORINPUT) + 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. |