ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1677134 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/THYMEAnaforaXMLReader.java
Date Fri, 01 May 2015 13:32:59 GMT
Author: tmill
Date: Fri May  1 13:32:59 2015
New Revision: 1677134

URL: http://svn.apache.org/r1677134
Log:
Warn for reading in duplicate sections -- rather than choking and quitting.

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/THYMEAnaforaXMLReader.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/THYMEAnaforaXMLReader.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/THYMEAnaforaXMLReader.java?rev=1677134&r1=1677133&r2=1677134&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/THYMEAnaforaXMLReader.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/THYMEAnaforaXMLReader.java
Fri May  1 13:32:59 2015
@@ -243,6 +243,9 @@ public class THYMEAnaforaXMLReader exten
           markable.addToIndexes();
           annotation = markable;
 
+        } else if (type.equals("DUPLICATE")) {
+          LOGGER.warn("Ignoring duplicate sections in annotations.");
+          continue;
         } else {
           throw new UnsupportedOperationException("unsupported entity type: " + type);
         }



Mime
View raw message