ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1748439 - /ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/PositiveAndNegativeExamplePrinter.java
Date Tue, 14 Jun 2016 16:32:50 GMT
Author: dligach
Date: Tue Jun 14 16:32:50 2016
New Revision: 1748439

URL: http://svn.apache.org/viewvc?rev=1748439&view=rev
Log:
marking events in between does not seem to help, so getting rid of them

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=1748439&r1=1748438&r2=1748439&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
Tue Jun 14 16:32:50 2016
@@ -217,21 +217,21 @@ public class PositiveAndNegativeExampleP
     List<String> tokens = new ArrayList<>();
     for(BaseToken baseToken :  JCasUtil.selectPreceding(jCas, BaseToken.class, arg1, contextSize))
{
       if(sent.getBegin() <= baseToken.getBegin()) {
-        tokens.add(convertToString(jCas, baseToken)); 
+        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(convertToString(jCas, baseToken));
+      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(convertToString(jCas, baseToken));
+        tokens.add(baseToken.getCoveredText());
       }
     }
     



Mime
View raw message