From: <ku...@us...> - 2008-05-15 16:44:10
|
Revision: 852 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=852&view=rev Author: kurzum Date: 2008-05-15 09:43:44 -0700 (Thu, 15 May 2008) Log Message: ----------- Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java trunk/src/dl-learner/org/dllearner/scripts/SPARQLExtractionEvaluation.java trunk/src/dl-learner/org/dllearner/utilities/Statistics.java Modified: trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java 2008-05-15 16:32:46 UTC (rev 851) +++ trunk/src/dl-learner/org/dllearner/core/owl/SubsumptionHierarchy.java 2008-05-15 16:43:44 UTC (rev 852) @@ -74,7 +74,7 @@ for(Description c : allowedConceptsInSubsumptionHierarchy) { // schauen, ob es mehrere allgemeinere Nachbarn gibt SortedSet<Description> moreGeneral = subsumptionHierarchyUp.get(c); - //RBC + //RBC //HACK if(moreGeneral != null && moreGeneral.size()>0) { //System.out.println(moreGeneral); Description chosenParent = moreGeneral.first(); @@ -85,7 +85,8 @@ // for(Concept c : allowedConceptsInSubsumptionHierarchy) { for(Description c : allowedConceptsInSubsumptionHierarchy) { SortedSet<Description> moreSpecial = subsumptionHierarchyDown.get(c); - if(moreSpecial != null) { + //RBC //HACK + if(moreSpecial != null && moreSpecial.size()>0) { Description chosenParent = moreSpecial.first(); hierarchyUpNew.get(chosenParent).add(c); } Modified: trunk/src/dl-learner/org/dllearner/scripts/SPARQLExtractionEvaluation.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/SPARQLExtractionEvaluation.java 2008-05-15 16:32:46 UTC (rev 851) +++ trunk/src/dl-learner/org/dllearner/scripts/SPARQLExtractionEvaluation.java 2008-05-15 16:43:44 UTC (rev 852) @@ -125,7 +125,9 @@ LearnSparql ls = new LearnSparql(); TreeSet<String> igno = new TreeSet<String>(); - System.out.println(oneConcept); + igno.add(oneConcept.replaceAll("\"", "")); + //igno.add("\""+oneConcept+"\""); + //System.out.println(oneConcept); ls.learnDBpedia(posExamples, negExamples, url,igno,recursiondepth, closeAfterRecursion,randomizeCache); Modified: trunk/src/dl-learner/org/dllearner/utilities/Statistics.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/Statistics.java 2008-05-15 16:32:46 UTC (rev 851) +++ trunk/src/dl-learner/org/dllearner/utilities/Statistics.java 2008-05-15 16:43:44 UTC (rev 852) @@ -77,8 +77,8 @@ printLong(timeCollecting, "collecting\t"); printLongAVG(timeCollecting,number,"collecting avg\t"); - printLong(timeLearning, "collecting\t"); - printLongAVG(timeLearning,number,"collecting avg\t"); + printLong(timeLearning, "learning\t"); + printLongAVG(timeLearning,number,"learning avg\t"); System.out.println("*****************Queries"); printInt(numberOfCachedSparqlQueries,"cached queries\t"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |