[CWB] Where to start looking for the problem?

"Andrés Chandía" andres at chandia.net
Sun Apr 24 15:59:24 CEST 2022



At Annotation metadata there are only: lemma and pos
they were without description so I added lemma for lemma and pos for pos, then I tried
next combinations in "CEQL (simple query) syntax bindings for token-level annotation in
coca" without success, I mean, always the same result:






    
        
                         Primary annotation             Secondary
annotation
        
        
            1.
            pos
            lemma
        
        
            2.
            lemma
            pos
        
        
            3.
            pos
             x
        
        
            4.
            lemma
             x
        
        
            5.
             x
            pos
        
        
            6.
             x
            lemma

        
    





CQP reports an error! The CQP program sent back these error messages:
  **** CQP
ERROR ****
  CQP Error:
  CQP Syntax Error: syntax error, unexpected ';', expecting
ID
  show +word + ; <--
  Ignoring subsequent input until next
';'...
  PARSE ERROR





El Dom, 24 de Abril de 2022, 15:34, Hardie, Andrew escribió:
 <style type="text/css">-></style>


The
problem is here:


show +word + ; 


It
indicates that you have the primary annotation set to an empty string. That won’t
work!


Try
resetting the primary annotation using the “CEQL bindings” under “Manage
annotation”.


best


Andrew.




From:
cwb-bounces at sslmit.unibo.it  On Behalf Of "Andrés
Chandía"
 Sent: 23 April 2022 17:25

To: Stephanie Evert 
 Cc: CWBdev Mailing List 

Subject: Re: [CWB] Where to start looking for the problem?


 

Ok, eventhough the previous time I have changed platform in th config.mk file, something
should have gone wrong...

now I did it the way you suggested:

cd
cwb-3.4.33-src
make clean PLATFORM=linux-64 SITE=standard
make depend
PLATFORM=linux-64
 SITE=standard
make all PLATFORM=linux-64 SITE=standard
make install
PLATFORM=linux-64 SITE=standard
--------------------------------- INSTALLING CORPUS
WORKBENCH
.... install the CL static library file
.... install cwb/cl.h header
file
....
 install the CQP programs
.... install the CQi/cqi.h header file
.... install
the CWB utility programs
.... install all manual files

and now is
correct....

/usr/local/bin/cqp -v

The IMS Open Corpus Workbench (CWB)

Copyright
 (C) 1993-2006 by IMS, University of Stuttgart
Original developer: Oliver Christ
with contributions by Bruno Maximilian Schulze
Version 3.0 developed by: Stefan
Evert
with contributions by Arne Fitschen

Copyright (C) 2007-today by the
CWB
 open-source community
individual contributors are listed in source file AUTHORS

Download and contact: http://cwb.sourceforge.net/

Compiled: sáb 23 abr 2022 18:16:17 CEST
Version: 3.4.33


but still on the web interface, on querying
 the coca corpus I get

CQP reports an error! The CQP program sent back these
error messages:

**** CQP ERROR ****

CQP Error:

CQP Syntax
Error: syntax error, unexpected ';', expecting ID

show +word + ; 
Ignoring
subsequent
 input until next ';'...

PARSE ERROR
PHP debugging backtrace

array(6) {
[1]=>
array(4) {
["file"]=>
string(55)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/exiterror-lib.php"
["line"]=>
int(380)
["function"]=>
string(9)
"exiterror"
["args"]=>
array(1)
 {
[0]=>
array(7) {
[0]=>
string(69) "CQP reports an
error! The CQP program sent back these error messages:"
[1]=>
string(19)
"**** CQP ERROR ****"
[2]=>
string(10) "CQP Error:"
[3]=>
string(60) "CQP Syntax Error: syntax error,
 unexpected ';', expecting ID"
[4]=>
string(18) "show +word + ;
[5]=>
string(43) "Ignoring subsequent input until next ';'..."
[6]=>
string(11) "PARSE ERROR"
}
}
}
[2]=>
array(4) {
["file"]=>
string(45)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/cqp.php"
["line"]=>
int(1798)
["function"]=>
string(13)
 "exiterror_cqp"
["args"]=>
array(1) {
[0]=>
array(6) {
[0]=>
string(19) "**** CQP ERROR ****"
[1]=>
string(10) "CQP Error:"
[2]=>
string(60) "CQP Syntax Error:
syntax error, unexpected ';', expecting ID"
[3]=>
string(18)
 "show +word + ; [4]=>
string(43) "Ignoring subsequent input until next
';'..."
[5]=>
string(11) "PARSE ERROR"
}
}
}
[3]=>
array(7) {
["file"]=>
string(45)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/cqp.php"
["line"]=>
int(1850)
["function"]=>
string(11)
 "shout_error"
["class"]=>
string(3) "CQP"
["object"]=>
object(CQP)#67 (21) {
["has_been_disconnected":"CQP":private]=>
bool(false)
["process":"CQP":private]=>
resource(4) of type (process)
["pipe":"CQP":private]=>
array(3) {
[0]=>
resource(1)
 of type (stream)
[1]=>
resource(2) of type (stream)
[2]=>
resource(3) of type (stream)
}
["last_registry_invoked":"CQP":private]=>
string(48)
"/mnt/vmdata/corptedig-glif/corpora/cqp/registry/"
["major_version"]=>
int(3)
["minor_version"]=>
int(4)
["revision_version"]=>
int(33)
["revision_version_flagged_beta":"CQP":private]=>
bool(false)
["compile_date"]=>
NULL
["version_string"]=>
string(18)
 "CQP version 3.4.33"
["status":"CQP":private]=>
int(1)
["error_handler":"CQP":private]=>
string(13)
"exiterror_cqp"
["error_message":"CQP":private]=>
array(6) {
[0]=>
string(19) "**** CQP ERROR ****"
[1]=>
string(10) "CQP Error:"
[2]=>
string(60)
 "CQP Syntax Error: syntax error, unexpected ';', expecting ID"
[3]=>
string(18) "show +word + ; [4]=>
string(43) "Ignoring
subsequent input until next ';'..."
[5]=>
string(11) "PARSE
ERROR"
}
["EOL":"CQP":private]=>
string(1)
 "
"
["progress_handler":"CQP":private]=>
bool(false)
["gzip_path":"CQP":private]=>
string(0)
""
["debug_mode":"CQP":private]=>
bool(false)
["unbuffered_output_pending":"CQP":private]=>
bool(false)
["pretty_suspended":"CQP":private]=>
bool(false)
["corpus_charset":"CQP":private]=>
int(0)
["last_set_corpus":"CQP":private]=>
string(4)
 "COCA"
}
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[4]=>
array(7) {
["file"]=>
string(45)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/cqp.php"
["line"]=>
int(1143)
["function"]=>
string(20)
"check_pipe_for_error"
["class"]=>
string(3)
 "CQP"
["object"]=>
object(CQP)#67 (21) {
["has_been_disconnected":"CQP":private]=>
bool(false)
["process":"CQP":private]=>
resource(4) of type (process)
["pipe":"CQP":private]=>
array(3) {
[0]=>
resource(1) of type (stream)
[1]=>
resource(2)
 of type (stream)
[2]=>
resource(3) of type (stream)
}
["last_registry_invoked":"CQP":private]=>
string(48)
"/mnt/vmdata/corptedig-glif/corpora/cqp/registry/"
["major_version"]=>
int(3)
["minor_version"]=>
int(4)
["revision_version"]=>
int(33)
["revision_version_flagged_beta":"CQP":private]=>
bool(false)
["compile_date"]=>
NULL
["version_string"]=>
string(18)
 "CQP version 3.4.33"
["status":"CQP":private]=>
int(1)
["error_handler":"CQP":private]=>
string(13)
"exiterror_cqp"
["error_message":"CQP":private]=>
array(6) {
[0]=>
string(19) "**** CQP ERROR ****"
[1]=>
string(10) "CQP Error:"
[2]=>
string(60)
 "CQP Syntax Error: syntax error, unexpected ';', expecting ID"
[3]=>
string(18) "show +word + ; [4]=>
string(43) "Ignoring
subsequent input until next ';'..."
[5]=>
string(11) "PARSE
ERROR"
}
["EOL":"CQP":private]=>
string(1)
 "
"
["progress_handler":"CQP":private]=>
bool(false)
["gzip_path":"CQP":private]=>
string(0)
""
["debug_mode":"CQP":private]=>
bool(false)
["unbuffered_output_pending":"CQP":private]=>
bool(false)
["pretty_suspended":"CQP":private]=>
bool(false)
["corpus_charset":"CQP":private]=>
int(0)
["last_set_corpus":"CQP":private]=>
string(4)
 "COCA"
}
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[5]=>
array(7) {
["file"]=>
string(56)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/concordance-ui.php"
["line"]=>
int(770)
["function"]=>
string(7)
"execute"
["class"]=>
string(3)
 "CQP"
["object"]=>
object(CQP)#67 (21) {
["has_been_disconnected":"CQP":private]=>
bool(false)
["process":"CQP":private]=>
resource(4) of type (process)
["pipe":"CQP":private]=>
array(3) {
[0]=>
resource(1) of type (stream)
[1]=>
resource(2)
 of type (stream)
[2]=>
resource(3) of type (stream)
}
["last_registry_invoked":"CQP":private]=>
string(48)
"/mnt/vmdata/corptedig-glif/corpora/cqp/registry/"
["major_version"]=>
int(3)
["minor_version"]=>
int(4)
["revision_version"]=>
int(33)
["revision_version_flagged_beta":"CQP":private]=>
bool(false)
["compile_date"]=>
NULL
["version_string"]=>
string(18)
 "CQP version 3.4.33"
["status":"CQP":private]=>
int(1)
["error_handler":"CQP":private]=>
string(13)
"exiterror_cqp"
["error_message":"CQP":private]=>
array(6) {
[0]=>
string(19) "**** CQP ERROR ****"
[1]=>
string(10) "CQP Error:"
[2]=>
string(60)
 "CQP Syntax Error: syntax error, unexpected ';', expecting ID"
[3]=>
string(18) "show +word + ; [4]=>
string(43) "Ignoring
subsequent input until next ';'..."
[5]=>
string(11) "PARSE
ERROR"
}
["EOL":"CQP":private]=>
string(1)
 "
"
["progress_handler":"CQP":private]=>
bool(false)
["gzip_path":"CQP":private]=>
string(0)
""
["debug_mode":"CQP":private]=>
bool(false)
["unbuffered_output_pending":"CQP":private]=>
bool(false)
["pretty_suspended":"CQP":private]=>
bool(false)
["corpus_charset":"CQP":private]=>
int(0)
["last_set_corpus":"CQP":private]=>
string(4)
 "COCA"
}
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
string(13) "show +word +
"
}
}
[6]=>
array(4) {
["file"]=>
string(53) "/mnt/vmdata/corptedig-glif/cqpweb/exe/concordance.php"
["line"]=>
int(1)
["args"]=>
array(1)
 {
[0]=>
string(56)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/concordance-ui.php"
}
["function"]=>
string(7) "require"
}
}

Thanks, and sorry for all the trouble...





That's still a
fairly old version, most current
 release is here: https://sourceforge.net/projects/cwb/files/cwb/cwb-3.5-RC/cwb-3.4.33-src.tar.gz/download
Your newly compiled version was
 probably installed into /usr/local/cwb-3.4.22/bin because you failed to set PLATFORM and
SITE configuration flags. Andrew Hardie recommends the auto-install script, but you can also
just append PLATFORM=linux-64 SITE=standard to _every_ make command. See file
 INSTALL for detailed instructions. Links and guidance on the Web page will be update
when I finally have some spare time. Best, Steph 

 
 
 
 
 _______________________
         
   andrés chandía
 
 Düngupeyem
 |  IECMap |  ISECMap |  NMT |  Corlexim


Desarrollador de:
 Parles.upf  |
 IWCH |  Amind terapia
|  Nocando |  IAC |  CddZ |  ISAC |  CatCg

P  No imprima innecesariamente. ¡Cuide el medio
ambiente!



 


_______________________

            andrés
chandía
 
Düngupeyem | IECMap | ISECMap | NMT | Corlexim

Desarrollador de:
Parles.upf | IWCH | Amind terapia | Nocando | IAC | CddZ | ISAC | CatCg
P No imprima innecesariamente. ¡Cuide el
medio ambiente!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20220424/fbddd60f/attachment-0001.html>


More information about the CWB mailing list