ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1768560 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java
Date Mon, 07 Nov 2016 17:18:57 GMT
Author: dligach
Date: Mon Nov  7 17:18:56 2016
New Revision: 1768560

URL: http://svn.apache.org/viewvc?rev=1768560&view=rev
Log:
disabled downsampling for now

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java?rev=1768560&r1=1768559&r2=1768560&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java
Mon Nov  7 17:18:56 2016
@@ -197,9 +197,9 @@ public class EventEventRelPrinter {
             }
 
             // drop some portion of negative examples during training
-            if(isTraining && label.equals("none") && coin.nextDouble() <=
0.5) {
-              continue; // skip this negative example
-            }
+            // if(isTraining && label.equals("none") && coin.nextDouble()
<= 0.5) {
+            //   continue; // skip this negative example
+            // }
             
             String context = ArgContextProvider.getTokenContext(systemView, sentence, mention1,
"e1", mention2, "e2", 2);
             // String context = ArgContextProvider.getRegions(systemView, sentence, mention1,
mention2, 2);



Mime
View raw message