ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1547407 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java
Date Tue, 03 Dec 2013 14:32:02 GMT
Author: clin
Date: Tue Dec  3 14:32:01 2013
New Revision: 1547407

URL: http://svn.apache.org/r1547407
Log:
For evaluation script, add offsets for error log output.

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java?rev=1547407&r1=1547406&r2=1547407&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java
Tue Dec  3 14:32:01 2013
@@ -170,10 +170,12 @@ protected abstract AnalysisEngineDescrip
               int windowEnd = Math.min(text.length(), end + 50);
               String label = goldOnly.contains(annotation) ? "DROPPED:" : "ADDED:  ";
               this.logger.fine(String.format(
-                  "%s  ...%s[!%s!]%s...",
+                  "%s  ...%s[!%s!:%d-%d]%s...",
                   label,
                   text.substring(windowBegin, begin),
                   text.substring(begin, end),
+                  begin,
+                  end,
                   text.substring(end, windowEnd)));
             }
           }



Mime
View raw message