ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevenbeth...@apache.org
Subject svn commit: r1454297 - in /incubator/ctakes/trunk: ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java ctakes-type-system/src/main/java/org/apache/ctakes/typesystem/type/constants/CONST.java
Date Fri, 08 Mar 2013 09:18:06 GMT
Author: stevenbethard
Date: Fri Mar  8 09:18:05 2013
New Revision: 1454297

URL: http://svn.apache.org/r1454297
Log:
Adds missing named entity types to CONST

Modified:
    incubator/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java
    incubator/ctakes/trunk/ctakes-type-system/src/main/java/org/apache/ctakes/typesystem/type/constants/CONST.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=1454297&r1=1454296&r2=1454297&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 Mar  8 09:18:05 2013
@@ -323,7 +323,7 @@ public class SHARPKnowtatorXMLReader ext
             annotation,
             mention,
             jCas,
-            CONST.NE_TYPE_ID_UNKNOWN /* TODO: is this the correct type? */,
+            CONST.NE_TYPE_ID_CLINICAL_ATTRIBUTE,
             stringSlots,
             booleanSlots,
             annotationSlots,
@@ -336,7 +336,7 @@ public class SHARPKnowtatorXMLReader ext
             annotation,
             mention,
             jCas,
-            CONST.NE_TYPE_ID_UNKNOWN /* TODO: is this the correct type? */,
+            CONST.NE_TYPE_ID_DEVICE,
             stringSlots,
             booleanSlots,
             annotationSlots,
@@ -408,7 +408,7 @@ public class SHARPKnowtatorXMLReader ext
             annotation,
             mention,
             jCas,
-            CONST.NE_TYPE_ID_UNKNOWN /* TODO: is this the correct type? */,
+            CONST.NE_TYPE_ID_LAB,
             stringSlots,
             booleanSlots,
             annotationSlots,
@@ -468,7 +468,7 @@ public class SHARPKnowtatorXMLReader ext
             annotation,
             mention,
             jCas,
-            CONST.NE_TYPE_ID_UNKNOWN /* TODO: is this the correct type? */,
+            CONST.NE_TYPE_ID_PHENOMENA,
             stringSlots,
             booleanSlots,
             annotationSlots,
@@ -867,7 +867,6 @@ public class SHARPKnowtatorXMLReader ext
       } else if ("reference_range".equals(annotation.type)) {
         LabReferenceRangeModifier modifier = new LabReferenceRangeModifier(jCas, coveringSpan.begin,
coveringSpan.end);
         LabReferenceRange attribute = new LabReferenceRange(jCas);
-        // TODO: is this where the reference range value should be taken from?
         attribute.setValue(modifier.getCoveredText());
         attribute.addToIndexes();
         modifier.setNormalizedForm(attribute);

Modified: incubator/ctakes/trunk/ctakes-type-system/src/main/java/org/apache/ctakes/typesystem/type/constants/CONST.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-type-system/src/main/java/org/apache/ctakes/typesystem/type/constants/CONST.java?rev=1454297&r1=1454296&r2=1454297&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-type-system/src/main/java/org/apache/ctakes/typesystem/type/constants/CONST.java
(original)
+++ incubator/ctakes/trunk/ctakes-type-system/src/main/java/org/apache/ctakes/typesystem/type/constants/CONST.java
Fri Mar  8 09:18:05 2013
@@ -30,6 +30,10 @@ public class CONST {
 	public static final int NE_TYPE_ID_FINDING = 3;
 	public static final int NE_TYPE_ID_PROCEDURE = 5;
 	public static final int NE_TYPE_ID_ANATOMICAL_SITE = 6;
+	public static final int NE_TYPE_ID_CLINICAL_ATTRIBUTE = 7;
+	public static final int NE_TYPE_ID_DEVICE = 8;
+	public static final int NE_TYPE_ID_LAB = 9;
+	public static final int NE_TYPE_ID_PHENOMENA = 10;
 	
 	public static final int MODIFIER_TYPE_ID_UNKNOWN = 0;
 	public static final int MODIFIER_TYPE_ID_COURSE_CLASS = 1;



Mime
View raw message