From: <jen...@us...> - 2008-01-02 13:52:48
|
Revision: 337 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=337&view=rev Author: jenslehmann Date: 2008-01-02 05:52:44 -0800 (Wed, 02 Jan 2008) Log Message: ----------- fixed non-working option improveSubsumptionHierarchy in refinement based learning algorithm Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/algorithms/refinement/ROLearner.java Modified: trunk/src/dl-learner/org/dllearner/algorithms/refinement/ROLearner.java =================================================================== --- trunk/src/dl-learner/org/dllearner/algorithms/refinement/ROLearner.java 2008-01-02 12:59:17 UTC (rev 336) +++ trunk/src/dl-learner/org/dllearner/algorithms/refinement/ROLearner.java 2008-01-02 13:52:44 UTC (rev 337) @@ -59,6 +59,7 @@ private boolean useOverlyGeneralList = true; private boolean useShortConceptConstruction = true; private double horizontalExpansionFactor = 0.6; + private boolean improveSubsumptionHierarchy = true; private boolean useAllConstructor = true; private boolean useExistsConstructor = true; private boolean useNegation = true; @@ -236,6 +237,8 @@ useShortConceptConstruction = (Boolean) entry.getValue(); } else if(name.equals("horzontalExpansionFactor")) { horizontalExpansionFactor = (Double) entry.getValue(); + } else if(name.equals("improveSubsumptionHierarchy")) { + improveSubsumptionHierarchy = (Boolean) entry.getValue(); } else if(name.equals("useAllConstructor")) { useAllConstructor = (Boolean) entry.getValue(); } else if(name.equals("useExistsConstructor")) { @@ -297,7 +300,8 @@ // prepare subsumption and role hierarchies, because they are needed // during the run of the algorithm rs.prepareSubsumptionHierarchy(usedConcepts); - rs.getSubsumptionHierarchy().improveSubsumptionHierarchy(); + if(improveSubsumptionHierarchy) + rs.getSubsumptionHierarchy().improveSubsumptionHierarchy(); rs.prepareRoleHierarchy(usedRoles); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |