[CWB] show +no

Hardie, Andrew a.hardie at lancaster.ac.uk
Mon Nov 13 23:32:03 CET 2017


Hi Jörg,

“no” is a reserved word in CQP – synonym of “off” for setting Boolean variables - so you can’t use it for a corpus or attribute name or CQP will complain.

To my knowledge, there’s no way of quoting corpus/attribute identifiers alas (conceivably there should be!).

List of reserved words is here… http://cwb.sourceforge.net/files/CQP_Tutorial/node51.html

Andrew.

From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Jörg Tiedemann
Sent: 13 November 2017 22:20
To: Open source development of the Corpus WorkBench
Subject: [CWB] show +no


I have a Norwegian corpus with the name “no” that I want to include in my query for parallel data but cqp complains about

No alignment to 'no' found because:
CQP Error:
CQP Syntax Error: syntax error, unexpected NO_SYM, expecting ID

show +no; <--
Synchronizing until next ';'...
PARSE ERROR

Do I have to escape the name of the corpus somehow?

Jörg

**********************************************************************************************
Jörg Tiedemann
Department of Modern Languages        http://blogs.helsinki.fi/tiedeman/
University of Helsinki                             http://blogs.helsinki.fi/language-technology/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20171113/5c49b345/attachment-0001.html>


More information about the CWB mailing list