From: <ku...@us...> - 2008-08-29 20:03:16
|
Revision: 1143 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1143&view=rev Author: kurzum Date: 2008-08-29 20:03:14 +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 19:50:57 UTC (rev 1142) +++ trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java 2008-08-29 20:03:14 UTC (rev 1143) @@ -58,7 +58,9 @@ @SuppressWarnings("unchecked") public SortedSet<Description> getMoreSpecialConcepts(Description concept) { - 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 19:50:57 UTC (rev 1142) +++ trunk/src/dl-learner/org/dllearner/scripts/SemanticBible.java 2008-08-29 20:03:14 UTC (rev 1143) @@ -147,7 +147,11 @@ // System.out.println(reasoningService.getMoreGeneralConcepts(target)); // for every class execute the learning algorithm + try{ learnOriginal(target, positiveEx, negativeEx); + }catch (Exception e) { + e.printStackTrace(); + } waitForInput(); } @@ -170,10 +174,12 @@ SetManipulation.indToString(posExamples), SetManipulation.indToString(negExamples), usedReasoner); + la.start(); }catch (Exception e) { + System.out.println("ignoring the error "+e.toString()); // TODO: handle exception } - la.start(); + EvaluatedDescription d = la.getCurrentlyBestEvaluatedDescription(); //for (EvaluatedDescription description : conceptresults) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |