incubator-ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmurph...@apache.org
Subject svn commit: r1439528 - /incubator/ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/DrugMentionAnnotator.java
Date Mon, 28 Jan 2013 17:57:46 GMT
Author: spmurphy50
Date: Mon Jan 28 17:57:46 2013
New Revision: 1439528

URL: http://svn.apache.org/viewvc?rev=1439528&view=rev
Log:
Add fix CTAKE-129 Populate the Drug NER named entity confidence attribute 

Modified:
    incubator/ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/DrugMentionAnnotator.java

Modified: incubator/ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/DrugMentionAnnotator.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/DrugMentionAnnotator.java?rev=1439528&r1=1439527&r2=1439528&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/DrugMentionAnnotator.java
(original)
+++ incubator/ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/DrugMentionAnnotator.java
Mon Jan 28 17:57:46 2013
@@ -387,7 +387,11 @@ public class DrugMentionAnnotator extend
 			// if (d!=null) d.addToIndexes(); // don't need to be able to get these directly from
the AnnotationIndex
 			if (d!=null) medicationMention.setStartDate(d);
 		}
-
+		// Add fix CTAKE-129 Populate the Drug NER named entity confidence attribute 
+		if (fromAnnotation.getConfidence() != 0.0 ) {
+			medicationMention.setConfidence(fromAnnotation.getConfidence());
+		}
+			
 		// There currently is no endDate in DrugMentionAnnotation 
 		//if (fromAnnotation.getEndDate()!=null) {
 		//	
@@ -730,7 +734,7 @@ public class DrugMentionAnnotator extend
         Iterator chkNE = namedE.iterator();
         Iterator newNE = wordTokenList.iterator();
         boolean neFound = false;
-        MedicationEventMention ne = null;
+      //  MedicationEventMention ne = null;
         WordToken we = null;
         Object mt = (Object)  measurementTokenItr.next();
         if (mt instanceof  StrengthUnitToken) {



Mime
View raw message