ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1696980 - /ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/PersonChainAnnotator.java
Date Fri, 21 Aug 2015 13:39:23 GMT
Author: tmill
Date: Fri Aug 21 13:39:23 2015
New Revision: 1696980

URL: http://svn.apache.org/r1696980
Log:
Added 'pt' as a patient reference.

Modified:
    ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/PersonChainAnnotator.java

Modified: ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/PersonChainAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/PersonChainAnnotator.java?rev=1696980&r1=1696979&r2=1696980&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/PersonChainAnnotator.java
(original)
+++ ctakes/sandbox/ctakes-coref-cleartk/src/main/java/org/apache/ctakes/coreference/ae/PersonChainAnnotator.java
Fri Aug 21 13:39:23 2015
@@ -55,7 +55,7 @@ public class PersonChainAnnotator extend
         // TODO - smarter logic for Dr. Firstname Lastname
         Markable ptMention = new Markable(jcas, word.getBegin(), words.get(i+1).getEnd());
         addToList(jcas, ptList, ptMention);
-      }else if(text.equalsIgnoreCase("patient")){
+      }else if(text.equalsIgnoreCase("patient") || text.equalsIgnoreCase("pt")){
         Markable ptMention = new Markable(jcas, word.getBegin(), word.getEnd());
         addToList(jcas, ptList, ptMention);
       }



Mime
View raw message