ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1725805 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Date Wed, 20 Jan 2016 20:18:28 GMT
Author: tmill
Date: Wed Jan 20 20:18:28 2016
New Revision: 1725805

URL: http://svn.apache.org/viewvc?rev=1725805&view=rev
Log:
Fixed string length bug.

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java?rev=1725805&r1=1725804&r2=1725805&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Wed Jan 20 20:18:28 2016
@@ -1074,7 +1074,7 @@ public abstract class Evaluation_ImplBas
                       buff.append(probMention.getConfidence());
                       buff.append("::");
                     }
-                    dtrContent = buff.substring(0, buff.length()-3);
+                    dtrContent = buff.substring(0, buff.length()-2);
                   }
                   docTimeRE.setTextContent( dtrContent );
                   Element eventTypeE = doc.createElement( "Type" );
@@ -1176,7 +1176,7 @@ public abstract class Evaluation_ImplBas
                    buff.append(probRel.getConfidence());
                    buff.append("::");
                  }
-                 relContent = buff.substring(0, buff.length()-3);
+                 relContent = buff.substring(0, buff.length()-2);
                }
                
                relTypeE.setTextContent( relContent );



Mime
View raw message