Return-Path: X-Original-To: apmail-ctakes-dev-archive@www.apache.org Delivered-To: apmail-ctakes-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA40010806 for ; Thu, 5 Dec 2013 16:44:23 +0000 (UTC) Received: (qmail 73004 invoked by uid 500); 5 Dec 2013 16:44:22 -0000 Delivered-To: apmail-ctakes-dev-archive@ctakes.apache.org Received: (qmail 72970 invoked by uid 500); 5 Dec 2013 16:44:22 -0000 Mailing-List: contact dev-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 dev@ctakes.apache.org Received: (qmail 72962 invoked by uid 99); 5 Dec 2013 16:44:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 16:44:21 +0000 X-ASF-Spam-Status: No, hits=3.8 required=5.0 tests=FB_GET_MEDS,FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chasemaster9@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 16:44:16 +0000 Received: by mail-wg0-f51.google.com with SMTP id b13so13765993wgh.6 for ; Thu, 05 Dec 2013 08:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=8bi0BY/rk7IQ0U8uKCTEgzrZ36f9KJsyfXkh7/JdZVw=; b=mLIdCIGYMgMFzqWgR5iesbgVEez0D7+wNj5vHqvYUvUpANgTGj2VUs9tx80uvR3Ggi OGV+5E2cz+3VXPvVeYKzgG+rU1NaNrPwuLv7KnJ7p2PA5/gE4LJiQiKmpzeN86jGRmeV rjs6VsgnwIrRtB9pN5zkEtAAirJ+OZxx2g17VgljIRiv8cyzMIVPPkdt8GlJAZrYkh71 HK3ip1eLsXrH7SyYEQgRXmsg3bU9JZ5qFnXQ/9X1XfeoBz/8fzvxxWv+4yRPYNmYyfCh ZRRDnux6AX2XOflxwtMR2LqRAu7cu58VRvF+l7X1mUIJwYe1otWKJslacuqVwa5sEXBy qLgA== MIME-Version: 1.0 X-Received: by 10.180.85.42 with SMTP id e10mr12843168wiz.1.1386261834792; Thu, 05 Dec 2013 08:43:54 -0800 (PST) Received: by 10.216.51.2 with HTTP; Thu, 5 Dec 2013 08:43:54 -0800 (PST) Date: Thu, 5 Dec 2013 10:43:54 -0600 Message-ID: Subject: help getting MedicationStrength From: Chase Master To: dev@ctakes.apache.org Content-Type: multipart/alternative; boundary=f46d044304723a84f304eccc3c57 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044304723a84f304eccc3c57 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm trying to grab results after running the DrugNER AE using the UIMA framework. I am able to print all the results to the console using: FSIterator it = jcas.getAnnotationIndex(MedicationMention.type).iterator(); if (it.hasNext()) { MedicationMention med = (MedicationMention) it.next(); System.out.println(med.toString()); } However, I want to grab specific values. I have used these successfully: med.getMedicationStatusChange().getCategory(); med.getMedicationRoute().getCategory(); med.getPolarity(); However, I can't seem to get the Medication Strength value and unit. I don't see a 'getNumber' method that works for MedicationStrengthModifier type. This is what I have so far: MedicationStrengthModifier strength= strength.getMedicationStrength(); do I use something like: strength.getNormalizedForm()... but I still don't see how to get the number and unit. Maybe this is all wrong...please advise :) Thanks! --f46d044304723a84f304eccc3c57--