[CWB] [CQPweb] problem encountered when installing a corpus from scratch using install-corpus.php

wu liangping liangpingwu at 126.com
Mon Jul 26 08:21:53 CEST 2021


Dear all,


Installing a corpus anew from the command line without clikcing around is such an attracitve option in terms of efficiency (and automation), so the install-corpus.php story here.


I have a tiny (experimental) corpus test.txt with only two columns:
<text id="sample">
<s>
I	I
am	am
just	just
a	a
testing	testing
line	line
.	.
</s>
<s>
I	I
am	am
just	just
another	another
testing	testing
line	line
.	.
</s>
</text>

The test.txt file has been uploaded to cqpweb's upload area, and the XmlTemplate and AnnotationTemplate have also been defined from the CQPweb GUI, and finally I run the following command from /path/to/cqpweb/bin:
php install-corpus.php  --corpus_name="test"  --corpus_description="a test corpus" --cssBuiltIn="blue.css" --corpus_charset="utf8" --useXmlTemplate=2 --useAnnotationTemplate=6  --file="test.txt"
However, it keeps saying that "You must specify at least one file to include in the corpus!" (my CQPweb version is 3.2.43)
My first guess is that something might be wrong with the format of the parameters specified. According to the online documentation, --file would expect a "list" of files (at least one file is required). However, I tried different combinations but without luck.
Any hint?  
Thanks for any input.
Best,
WU Liangping
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20210726/140c9c97/attachment.html>


More information about the CWB mailing list