ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1752752 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/docTimeRelPrinter.java
Date Thu, 14 Jul 2016 21:07:46 GMT
Author: dligach
Date: Thu Jul 14 21:07:46 2016
New Revision: 1752752

URL: http://svn.apache.org/viewvc?rev=1752752&view=rev
Log:
context size 10 works best for now

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/docTimeRelPrinter.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/docTimeRelPrinter.java?rev=1752752&r1=1752751&r2=1752752&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/docTimeRelPrinter.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/docTimeRelPrinter.java
Thu Jul 14 21:07:46 2016
@@ -147,7 +147,7 @@ public class docTimeRelPrinter {
         for(EventMention event : JCasUtil.selectCovered(goldView, EventMention.class, sentence))
{
           if(event.getEvent() != null) {
             String label = event.getEvent().getProperties().getDocTimeRel();
-            String context = getEventContext(systemView, sentence, event, "e", 3);
+            String context = getEventContext(systemView, sentence, event, "e", 10);
             String text = String.format("%s|%s", label, context);
             docTimeRelExamplesInSentence.add(text.toLowerCase());
           } else {



Mime
View raw message