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 2CDE911684 for ; Fri, 28 Mar 2014 19:19:29 +0000 (UTC) Received: (qmail 76041 invoked by uid 500); 28 Mar 2014 19:19:28 -0000 Delivered-To: apmail-ctakes-notifications-archive@ctakes.apache.org Received: (qmail 74327 invoked by uid 500); 28 Mar 2014 19:19:25 -0000 Mailing-List: contact notifications-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list notifications@ctakes.apache.org Received: (qmail 74045 invoked by uid 99); 28 Mar 2014 19:19:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2014 19:19:20 +0000 Date: Fri, 28 Mar 2014 19:19:20 +0000 (UTC) From: "Pei Chen (JIRA)" To: notifications@ctakes.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CTAKES-246) DrugMentionAnnotator falls to infinite loop for some expression 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-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951267#comment-13951267 ] Pei Chen commented on CTAKES-246: --------------------------------- Hi Chen, I believe Britt just checked in a fix into truck. Could you verify that it also fixes this bug for you? > DrugMentionAnnotator falls to infinite loop for some expression > ----------------------------------------------------------------- > > Key: CTAKES-246 > URL: https://issues.apache.org/jira/browse/CTAKES-246 > Project: cTAKES > Issue Type: Bug > Components: ctakes-drug-ner > Affects Versions: 3.1 > Reporter: Chen Lin > Priority: Minor > > I was using an older version of cTAKES (Revision: 1479606, the version right before type-system changed for adding more eventMentioins from entities) to process some notes. One note seems trigger DrugMentionAnnotator to an infinite loop. The error message was attached below. This error didn't occur with the newest trunk version. I am thus wondering if this was a known bug and has been fixed in some way. My situation is that I cannot switch to the latest version of trunk, because my down-streaming pipeline was relying on the old eventMentions. > The actual sentences that trigger this loop is the following. > "Blah of increased pain him long standing MS Contin was increased from 15 mg. q12 hours to 60 mg. q.12 hours." > Oddly, it worked fine if the text was "q24 hours." > Error message: > Caused by: java.lang.StackOverflowError > at org.apache.ctakes.typesystem.type.textsem.EventMention.(EventMention.java:45) > at org.apache.ctakes.typesystem.type.textsem.MedicationEventMention.(MedicationEventMention.java:58) > at org.apache.ctakes.drugner.ae.DrugMentionAnnotator.generateAdditionalNER(DrugMentionAnnotator.java:2117) > at org.apache.ctakes.drugner.ae.DrugMentionAnnotator.statusChangePhraseGenerator(DrugMentionAnnotator.java:2100) > at org.apache.ctakes.drugner.ae.DrugMentionAnnotator.generateDrugMentionsAndAnnotations(DrugMentionAnnotator.java:1397) > at org.apache.ctakes.drugner.ae.DrugMentionAnnotator.generateAdditionalNER(DrugMentionAnnotator.java:2270) > at org.apache.ctakes.drugner.ae.DrugMentionAnnotator.statusChangePhraseGenerator(DrugMentionAnnotator.java:2100) > at org.apache.ctakes.drugner.ae.DrugMentionAnnotator.generateDrugMentionsAndAnnotations(DrugMentionAnnotator.java:1397) > at org.apache.ctakes.drugner.ae.DrugMentionAnnotator.generateAdditionalNER(DrugMentionAnnotator.java:2270) > at org.apache.ctakes.drugner.ae.DrugMentionAnnotator.statusChangePhraseGenerator(DrugMentionAnnotator.java:2100) -- This message was sent by Atlassian JIRA (v6.2#6252)