[CWB] Strange problem with a query

Josep M. Fontana josepm.fontana at upf.edu
Tue Jul 24 14:09:55 CEST 2012


Hi,

I'm trying to conduct the following query:

 >[pos="VV.*"][pos="DT."]? [pos="AV0"]? [pos="AJ.*"]* [pos="N.*"] 
[pos="AJ.*"][(pos="N.*")|(pos="PR.*")|(pos="TO0")]! within s;

When I enter the query I get the following error:

"Warning:
     ``Keep Ranges'' only allowed when
querying subcorpora (ignored)
CQP Error:
     CQP Syntax Error: syntax error, unexpected WITHIN_SYM, expecting ';'
     [pos="VV.*"][pos="DT."]? [pos="AV0"]? [pos="AJ.*"]* [pos="N.*"] 
[pos="AJ.*"][(pos="N.*")|(pos="PR.*")|(pos="TO0")]! within  <--
Synchronizing to end of line ... "

I don't really understand what the problem is. I've checked the syntax 
and I think I haven't done anything wrong. When I try to do the same 
search but eliminating "within s", I get the first part of the error 
message:

"Warning:
     ``Keep Ranges'' only allowed when
querying subcorpora (ignored)"

but then CQP continues the query and I seem to get the results I want.

adding "within s" to more simple queries doesn't cause any problem.

I would appreciate any help with the interpretation of these error 
messages.

Josep M.


More information about the CWB mailing list