You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by ja...@apache.org on 2013/01/18 00:06:46 UTC

svn commit: r1434950 - /incubator/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java

Author: james-masanz
Date: Thu Jan 17 23:06:45 2013
New Revision: 1434950

URL: http://svn.apache.org/viewvc?rev=1434950&view=rev
Log:
as part of: CTAKES-69: set a few more of the mentions to the specific mention type. 

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=1434950&r1=1434949&r2=1434950&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 Thu Jan 17 23:06:45 2013
@@ -677,7 +677,7 @@ public class SHARPKnowtatorXMLReader ext
       } else if ("medial_or_lateral".equals(annotation.type)) {
         String value = stringSlots.remove("medial_or_lateral_normalization");
         
-        Modifier modifier = new Modifier(jCas, coveringSpan.begin, coveringSpan.end);
+        BodyLateralityModifier modifier = new BodyLateralityModifier(jCas, coveringSpan.begin, coveringSpan.end);
         BodyLaterality laterality = new BodyLaterality(jCas);
         if (value == null) {
           LOGGER.warn(String.format(
@@ -700,7 +700,7 @@ public class SHARPKnowtatorXMLReader ext
       } else if ("dorsal_or_ventral".equals(annotation.type)) {
         String value = stringSlots.remove("dorsal_or_ventral_normalization");
         
-        Modifier modifier = new Modifier(jCas, coveringSpan.begin, coveringSpan.end);
+        BodyLateralityModifier modifier = new BodyLateralityModifier(jCas, coveringSpan.begin, coveringSpan.end);
         BodyLaterality laterality = new BodyLaterality(jCas);
         if (value == null) {
           LOGGER.warn(String.format(
@@ -724,7 +724,7 @@ public class SHARPKnowtatorXMLReader ext
         String code = stringSlots.remove("associatedCode");
         ProcedureMethod method = new ProcedureMethod(jCas);
         method.setValue(code);
-        Modifier modifier = new Modifier(jCas, coveringSpan.begin, coveringSpan.end);
+        ProcedureMethodModifier modifier = new ProcedureMethodModifier(jCas, coveringSpan.begin, coveringSpan.end);
         modifier.setNormalizedForm(method);
         modifier.addToIndexes();
         idAnnotationMap.put(annotation.id, modifier);
@@ -733,7 +733,7 @@ public class SHARPKnowtatorXMLReader ext
         String code = stringSlots.remove("associatedCode");
         ProcedureDevice device = new ProcedureDevice(jCas);
         device.setValue(code);
-        Modifier modifier = new Modifier(jCas, coveringSpan.begin, coveringSpan.end);
+        ProcedureDeviceModifier modifier = new ProcedureDeviceModifier(jCas, coveringSpan.begin, coveringSpan.end);
         modifier.setNormalizedForm(device);
         modifier.addToIndexes();
         idAnnotationMap.put(annotation.id, modifier);