ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1696988 - /ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/features/cluster/MentionClusterStackFeaturesExtractor.java
Date Fri, 21 Aug 2015 13:46:56 GMT
Author: tmill
Date: Fri Aug 21 13:46:56 2015
New Revision: 1696988

URL: http://svn.apache.org/r1696988
Log:
Change the way stack size features are computed.

Modified:
    ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/features/cluster/MentionClusterStackFeaturesExtractor.java

Modified: ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/features/cluster/MentionClusterStackFeaturesExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/features/cluster/MentionClusterStackFeaturesExtractor.java?rev=1696988&r1=1696987&r2=1696988&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/features/cluster/MentionClusterStackFeaturesExtractor.java
(original)
+++ ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/features/cluster/MentionClusterStackFeaturesExtractor.java
Fri Aug 21 13:46:56 2015
@@ -60,8 +60,8 @@ public class MentionClusterStackFeatures
     
 //    feats.add(new Feature("ClusterStackPositionInclSingleton"+numIntervening,true));
 //    feats.add(new Feature("ClusterStackPosition"+numNonSingletonIntervening,true));
-    feats.add(new Feature("ClusterStackPositionInclSingleton", Math.log10(numIntervening+1)));
-    feats.add(new Feature("ClusterStackPosition", Math.log10(numNonSingletonIntervening+1)));
+    feats.add(new Feature("ClusterStackPositionInclSingleton", 1 + Math.log10(numIntervening+1)));
+    feats.add(new Feature("ClusterStackPosition", 1 + Math.log10(numNonSingletonIntervening+1)));
     return feats;
   }
 



Mime
View raw message