ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1746748 - /ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/PositiveAndNegativeExamplePrinter.java
Date Fri, 03 Jun 2016 19:25:56 GMT
Author: dligach
Date: Fri Jun  3 19:25:56 2016
New Revision: 1746748

URL: http://svn.apache.org/viewvc?rev=1746748&view=rev
Log:
added tags <e>..</e> on both sides of event arguments

Modified:
    ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/PositiveAndNegativeExamplePrinter.java

Modified: ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/PositiveAndNegativeExamplePrinter.java
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/PositiveAndNegativeExamplePrinter.java?rev=1746748&r1=1746747&r2=1746748&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/PositiveAndNegativeExamplePrinter.java
(original)
+++ ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/PositiveAndNegativeExamplePrinter.java
Fri Jun  3 19:25:56 2016
@@ -221,11 +221,15 @@ public class PositiveAndNegativeExampleP
         tokens.add(baseToken.getCoveredText()); 
       }
     }
+    tokens.add("<e1>");
     tokens.add(arg1.getCoveredText());
+    tokens.add("</e1>");
     for(BaseToken baseToken : JCasUtil.selectBetween(jCas, BaseToken.class, arg1, arg2))
{
       tokens.add(baseToken.getCoveredText());
     }
+    tokens.add("<e2>");
     tokens.add(arg2.getCoveredText());
+    tokens.add("</e2>");
     for(BaseToken baseToken : JCasUtil.selectFollowing(jCas, BaseToken.class, arg2, contextSize))
{
       if(baseToken.getEnd() <= sent.getEnd()) {
         tokens.add(baseToken.getCoveredText());



Mime
View raw message