Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA5BB9D49 for ; Mon, 12 Dec 2011 10:32:09 +0000 (UTC) Received: (qmail 11646 invoked by uid 500); 12 Dec 2011 10:32:09 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 11597 invoked by uid 500); 12 Dec 2011 10:32:09 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 11589 invoked by uid 99); 12 Dec 2011 10:32:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2011 10:32:09 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=HS_INDEX_PARAM,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [132.187.3.28] (HELO mailrelay.rz.uni-wuerzburg.de) (132.187.3.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2011 10:32:00 +0000 Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id B6C4E5ACC8 for ; Mon, 12 Dec 2011 11:31:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id B4B225AC47 for ; Mon, 12 Dec 2011 11:31:39 +0100 (CET) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from [132.187.15.93] (win6093.informatik.uni-wuerzburg.de [132.187.15.93]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTPSA id A056D5D526 for ; Mon, 12 Dec 2011 11:31:39 +0100 (CET) Message-ID: <4EE5D80B.20600@uni-wuerzburg.de> Date: Mon, 12 Dec 2011 11:31:39 +0100 From: =?UTF-8?B?UGV0ZXIgS2zDvGds?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: uima matched pattern References: <8DC8411132364AC5BB1DD3FE6D3278E0@gmail.com> <4EE22E8B.1010209@schor.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, your problem is not really reproducible with the given information. Does line 133 "PrintAnnotations.printAnnotations(aCAS, System.out);" print all annotations of the CAS? Then, there is probably only the DocumentAnnotation that is the line of your BufferedReader in the code. Have you tried to debug your Annotator and checked if your regexp pattern matches at all on the input text? Peter Am 11.12.2011 11:04, schrieb francesco.tangari.inf@gmail.com: > first of all thx for the reply. the Annotator is this one http://pastebin.com/44EcubqC very simple regular expression Annotator. And this is called by this http://pastebin.com/6vwuRvvt. But it dose not print the Matched "Word" , "text" , instead , it show me the full Line that i read from file ( i don't want that). > > -- > francesco.tangari.inf@gmail.com > Inviato con Sparrow (http://www.sparrowmailapp.com/?sig) > > > Il giorno venerdì 9 dicembre 2011, alle ore 16.51, Marshall Schor ha scritto: > >> Hi, >> >> There may be some confusion about roles, here. UIMA itself doesn't have a >> concept of "matched - from - pattern". >> >> It does have a general concept of "annotations", which have the begin and end >> points. It is up to particular Annotators to specify these. Most annotators >> (that process "text") set these values to correspond to the part of the text the >> annotation is associated with. >> >> What Annotator are you running that you expect to produce matched patterns? >> >> -Marshall >> >> On 12/10/2011 7:31 AM, francesco.tangari.inf@gmail.com (mailto:francesco.tangari.inf@gmail.com) wrote: >>> how do i get the matched text from a jcas object ?? >>> looking at the begin and end feature it is wrong becuz it sometime say : begin : 0 . end: a number. and at 0 there isn't a match. >>> i m talking about matched patterns. >>> >> >> >> > > -- --------------------------------------------------------------------- Dipl.-Inf. Peter Klügl Universität Würzburg Tel.: +49-(0)931-31-86741 Am Hubland Fax.: +49-(0)931-31-86732 97074 Würzburg mail: pkluegl@informatik.uni-wuerzburg.de http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/ ---------------------------------------------------------------------