[CWB] PHP parse errors in cqpweb from subversion

Hardie, Andrew a.hardie at lancaster.ac.uk
Tue Aug 16 11:50:17 CEST 2011


You can add the text_id attribute separately with cwb-s-encode if you want to avoid recoding the whole corpus. Export the begin/end points of <text> using cwb-s-decode, add the IDs, and re-import as text_id with cwb-s-encode. The new man files (which I finished at the weekend!) should make it clear how to work this.

best

Andrew.

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Richard Eckart de Castilho
Sent: 16 August 2011 10:33
To: Richard Eckart de Castilho
Cc: Open source development of the Corpus WorkBench
Subject: Re: [CWB] PHP parse errors in cqpweb from subversion

> I read somewhere that CQPWeb requires that text are marked with <text id="..."> tags. Does the ID have to be numeric? Does it have to be a sequence? Is it ok to use arbitrary additional XML tags?

I found again where I read this (in the CQP Manual) and the section answers my question. So at the moment I am getting 

   CQPweb encountered an error and could not continue.
   Pre-indexed corpora require s-attributes text and text_id!!
   ... in file /opt/CQPweb-2.x/lib/admin-install.inc.php line 152.

and I will have to see how I can recode my corpora. I have the structural attributes "s" and "text" but I do not have the "id" attribtue on "text" yet.

Cheers,

Richard

-- 
------------------------------------------------------------------- 
Richard Eckart de Castilho
Technical Lead
Ubiquitous Knowledge Processing Lab 
FB 20 Computer Science Department      
Technische Universität Darmstadt 
Hochschulstr. 10, D-64289 Darmstadt, Germany 
phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117
eckartde at tk.informatik.tu-darmstadt.de 
www.ukp.tu-darmstadt.de 
Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
------------------------------------------------------------------- 




_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb


More information about the CWB mailing list