Return-Path: X-Original-To: apmail-ctakes-notifications-archive@www.apache.org Delivered-To: apmail-ctakes-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7947B104EF for ; Mon, 1 Jul 2013 17:26:25 +0000 (UTC) Received: (qmail 86620 invoked by uid 500); 1 Jul 2013 17:26:25 -0000 Delivered-To: apmail-ctakes-notifications-archive@ctakes.apache.org Received: (qmail 86588 invoked by uid 500); 1 Jul 2013 17:26:23 -0000 Mailing-List: contact notifications-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ctakes-dev@ctakes.apache.org Delivered-To: mailing list notifications@ctakes.apache.org Received: (qmail 86222 invoked by uid 99); 1 Jul 2013 17:26:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 17:26:22 +0000 Date: Mon, 1 Jul 2013 17:26:22 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: notifications@ctakes.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CTAKES-190) dictionary lookup should create specific XxxxMention annotations instead of more generic EntityMention MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CTAKES-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696984#comment-13696984 ] ASF subversion and git services commented on CTAKES-190: -------------------------------------------------------- Commit 1498579 from james-masanz@apache.org [ https://svn.apache.org/r1498579 ] CTAKES-190 - comment that MedicationMention should be used instead of MedicationEventMention as of 3.1. (Will make several separate commits because of timeouts occurring while svn is temporarily routed through EU) > dictionary lookup should create specific XxxxMention annotations instead of more generic EntityMention > ------------------------------------------------------------------------------------------------------ > > Key: CTAKES-190 > URL: https://issues.apache.org/jira/browse/CTAKES-190 > Project: cTAKES > Issue Type: Bug > Components: ctakes-dictionary-lookup > Affects Versions: 3.1 > Reporter: James Joseph Masanz > Assignee: James Joseph Masanz > Fix For: 3.1 > > > This is a follow-on to CTAKES-18 add XxxxEntity|EventMention types for other NEs similar to MedicationEventMention > There is a bug where dictionary lookup is annotating mentions of > sign/symptom, disease/disorder, and procedure as EntityMention rather > than EventMention, which does not follow the intent of the original > type system design. > Plus, with the changes to the type system in this two jira issues > CTAKES-57 Type System updates for 3.x-incubating > CTAKES-18 add XxxxEntity|EventMention types for other NEs similar to MedicationEventMention > the dictionary lookup component needs to be updated to make use of the > more specific XxxxMention types. > Within ctakes-dictionary-lookup, for named entities other than > MedicationEventMention, the following two classes create annotations > of EntityMention instead of the more specific types like > AnatomicalSiteMention. > UmlsToSnomedConsumerImpl.java > NamedEntityLookupConsumerImpl.java > I'll be changing those two classes so that instead of creating > EntityMention, the appropriate specific XxxxxxxMention type will > be created. > Note this means that some will be created as subtypes of EventMention > rather than subtypes of EntityMention, so something that previously looked > at all EntityMentions might now want to look at all IdentifiedAnnotations > The code that creates the annotaions within dictionary lookup will be this: > if ( conceptKey == CONST.NE_TYPE_ID_DRUG ) { > neAnnot = new MedicationEventMention( jcas ); > } else if ( conceptKey == CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { > neAnnot = new AnatomicalSiteMention( jcas ); > } else if ( conceptKey == CONST.NE_TYPE_ID_DISORDER ) { > neAnnot = new DiseaseDisorderMention( jcas ); > } else if ( conceptKey == CONST.NE_TYPE_ID_FINDING ) { > neAnnot = new SignSymptomMention( jcas ); > } else if ( conceptKey == CONST.NE_TYPE_ID_LAB ) { > neAnnot = new LabMention( jcas ); > } else if ( conceptKey == CONST.NE_TYPE_ID_PROCEDURE ) { > neAnnot = new ProcedureMention( jcas ); > } else { > neAnnot = new EntityMention( jcas ); > } > neAnnot.setTypeID( conceptKey ); > I will be scanning the code for places that are looking at all > EntityMentions and assuming it includes sign/symptom, disease/disorder, > and procedure annotations. > But if you are aware of such places and can save me some time, > please post details or add to the JIRA issue. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira