From: <lor...@us...> - 2013-10-29 14:51:34
|
Revision: 4136 http://sourceforge.net/p/dl-learner/code/4136 Author: lorenz_b Date: 2013-10-29 14:51:29 +0000 (Tue, 29 Oct 2013) Log Message: ----------- Fixed bug ins WSD score. Modified Paths: -------------- trunk/components-core/src/main/java/org/dllearner/algorithms/isle/wsd/StructureBasedWordSenseDisambiguation.java Modified: trunk/components-core/src/main/java/org/dllearner/algorithms/isle/wsd/StructureBasedWordSenseDisambiguation.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/algorithms/isle/wsd/StructureBasedWordSenseDisambiguation.java 2013-10-29 14:43:25 UTC (rev 4135) +++ trunk/components-core/src/main/java/org/dllearner/algorithms/isle/wsd/StructureBasedWordSenseDisambiguation.java 2013-10-29 14:51:29 UTC (rev 4136) @@ -45,7 +45,7 @@ List<String> tokenContext = contextExtractor.extractContext(annotation); //compare this context with the context of each entity candidate - double maxScore = Double.MIN_VALUE; + double maxScore = Double.NEGATIVE_INFINITY; Entity bestEntity = null; for (Entity entity : candidateEntities) { //get the context of the entity by analyzing the structure of the ontology This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |