incubator-ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevenbeth...@apache.org
Subject svn commit: r1446408 - /incubator/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java
Date Fri, 15 Feb 2013 00:07:53 GMT
Author: stevenbethard
Date: Fri Feb 15 00:07:53 2013
New Revision: 1446408

URL: http://svn.apache.org/r1446408
Log:
Sets timeClass feature on TimeMention

Modified:
    incubator/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java

Modified: incubator/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java?rev=1446408&r1=1446407&r2=1446408&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java
(original)
+++ incubator/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java
Fri Feb 15 00:07:53 2013
@@ -743,23 +743,23 @@ public class SHARPKnowtatorXMLReader ext
         idAnnotationMap.put(annotation.id, eventMention);
 
       } else if ("DOCTIME".equals(annotation.type)) {
-        // TODO: how do we specify that this is the document creation time?
         TimeMention timeMention = new TimeMention(jCas, coveringSpan.begin, coveringSpan.end);
+        timeMention.setTimeClass(annotation.type);
         timeMention.addToIndexes();
         idAnnotationMap.put(annotation.id, timeMention);
 
       } else if ("SECTIONTIME".equals(annotation.type)) {
-        // TODO: how do we specify that this is a section time?
         TimeMention timeMention = new TimeMention(jCas, coveringSpan.begin, coveringSpan.end);
+        timeMention.setTimeClass(annotation.type);
         timeMention.addToIndexes();
         idAnnotationMap.put(annotation.id, timeMention);
 
       } else if ("TIMEX3".equals(annotation.type)) {
         String timexClass = stringSlots.remove("class");
         TimeMention timeMention = new TimeMention(jCas, coveringSpan.begin, coveringSpan.end);
+        timeMention.setTimeClass(timexClass);
         timeMention.addToIndexes();
         idAnnotationMap.put(annotation.id, timeMention);
-        // TODO
         
       } else if ("conditional_class".equals(annotation.type)) {
         Boolean value = booleanSlots.remove("conditional_normalization");



Mime
View raw message