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/04/11 20:16:45 UTC

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

Author: james-masanz
Date: Thu Apr 11 18:16:45 2013
New Revision: 1467032

URL: http://svn.apache.org/r1467032
Log:
change logging from error to warn for ones that probably aren't coding errors/missing code

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

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java?rev=1467032&r1=1467031&r2=1467032&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java (original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/SHARPKnowtatorXMLReader.java Thu Apr 11 18:16:45 2013
@@ -250,7 +250,7 @@ public class SHARPKnowtatorXMLReader ext
       
       if (nonAnnotationTypes.contains(annotation.type)) {
         if (coveringSpan.begin != Integer.MAX_VALUE || coveringSpan.end != Integer.MIN_VALUE) {
-          LOGGER.error(String.format(
+          LOGGER.warn(String.format(
               "expected no span but found %s for '%s' with id '%s' in %s'",
               annotation.spans,
               annotation.type,
@@ -259,7 +259,7 @@ public class SHARPKnowtatorXMLReader ext
         }
       } else {
         if (coveringSpan.begin == Integer.MAX_VALUE || coveringSpan.end == Integer.MIN_VALUE) {
-          LOGGER.error(String.format(
+          LOGGER.warn(String.format(
               "expected span but found none for '%s' with id '%s' in %s'",
               annotation.type,
               annotation.id,
@@ -1346,7 +1346,7 @@ public class SHARPKnowtatorXMLReader ext
     
     private void assertTypes(Annotation sourceMention, Class<? extends Annotation> expectedSourceClass, Annotation targetMention, Class<? extends Annotation> expectedTargetClass) {
       if (!expectedSourceClass.isInstance(sourceMention) || !expectedTargetClass.isInstance(targetMention)) {
-        LOGGER.error(String.format(
+        LOGGER.warn(String.format(
             "wrong relation argument types: expected %s(%s(...), %s(...)) but found %s(%s, %s) for ids %s(%s, %s) in %s",
             this.annotation.type,
             expectedSourceClass.getSimpleName(),
@@ -1382,7 +1382,7 @@ public class SHARPKnowtatorXMLReader ext
       if (this.featureValue != null) {
         TOP valueAnnotation = idAnnotationMap.get(this.featureValue.id);
         if (valueAnnotation == null) {
-          LOGGER.error(String.format(
+          LOGGER.warn(String.format(
               "unable to set feature; found no annotation for %s",
               this.featureValue.id));
         } else {
@@ -1496,7 +1496,7 @@ public class SHARPKnowtatorXMLReader ext
         message = "wrong relation arg2 type";
       }
       if (message != null) {
-        LOGGER.error(String.format(
+        LOGGER.warn(String.format(
             "%s: expected %s feature of %s to be %s(%s, %s) but found %s[%s](%s, %s) with id \"%s\"",
             message,
             this.featureName,