[pcre-dev] [Bug 820] USing pcre_callout

Top Page
Delete this message
Author: Jing Lan
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 820] USing pcre_callout
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=820




--- Comment #4 from Jing Lan <lan@???> 2009-03-10 16:03:35 ---
"ENTITY" AND "ADV/ADV" etc. are display patterns. We are using PCRE to do some
named entity recognition for Machine Translation. So if, through PCRE, we can
find some pattern in the input text, the program will either put tags
(<dnt_entity_......>) before and after the found pattern, or replace the
pattern with some other output. We call those operations as re-writing.

The problem I am reporting is that through my definition
(tell(?C1)) $0=ENTITY:callout:ADV/ADV

the pattern found, corresponding to "$0", should be "tellcall" or "tellCALL",
not "tell" itself. Since the callout part is also within the scope of $0, I
suppose the output is
<..>tellcall<...>

Yet without the modification I did in pcre_exec.c, I got
<..>tell<...>call

That's why I said PCRE can locate callout pattern, yet the output is still not
100% what I want.

I am still doing debugging on both cases....


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email