You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by tm...@apache.org on 2015/05/01 15:32:59 UTC
svn commit: r1677134 -
/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/THYMEAnaforaXMLReader.java
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);
}