Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2 closed defect (fixed)

Regular Expressions not working

Reported by: didzis@… Owned by:
Priority: minor Component: manatee
Keywords: Cc:

Description

Compiled manatee from sources (manatee-bundle-open-2.59.1.tar.gz) as instructed in http://nlp.fi.muni.cz/trac/noske/wiki/Downloads (configured with --with-pcre --prefix=/usr/local) on Ubuntu 10.04 LTS yields in partially working regular expressions in Corpus Query Language.

PCRE is also compiled from sources of latest version (8.32).
$ ldd /usr/local/lib/libmanatee.so states:
libpcre.so.1 => /usr/local/lib/libpcre.so.1 - which is the latest version of PCRE compiled from sources.

/usr/local/include/finlib/config.hh contains:
/* Define to 1 if using pcre regexps */
#define USE_PCRE 1

Partially working regular expressions means that regular expressions are working on structure attributes, but not working on corpus attributes, for example, the query
[someattr="non regexp"] within <somestruct somestructattr="some regexp" />
works, but
[someattr="some regexp"] within <somestruct somestructattr="some regexp" />
does not work.

Previous version (manatee-bundle-open-2.33.1.tar.gz) worked correctly.

Change History (3)

comment:1 Changed 11 years ago by Miloš Jakubíček

Hm, it's quite strange that it would be working for positional but not structure attributes.

  • If you just do [someattr="some regexp"] (i.e. no within query), does it work?
  • If you use the corpquery command line utility, does it work?

Best, Milos Jakubicek

comment:2 Changed 11 years ago by didzis@…

Cc: peterisp@… removed
Priority: majorminor
Resolution: fixed
Status: newclosed

comment:3 Changed 11 years ago by anonymous

It seems, that there were some linking/include file problems with the correct pcre version. Now it is working correctly. Sorry, for the mislead.
Best regards, Didzis.

Note: See TracTickets for help on using tickets.