[CWB] [CQPweb] problem encountered when installing a corpus from scratch using install-corpus.php
graham.ranger
graham.ranger at univ-avignon.fr
Mon Jul 26 08:50:49 CEST 2021
Hello Wu,Just a guess, but would specifying the full path to the upload area and your file in "file=" help?Best,Graham.Envoyé depuis mon appareil Galaxy
-------- Message d'origine --------De : wu liangping <liangpingwu at 126.com> Date : 26/07/2021 08:23 (GMT+01:00) À : cwb at sslmit.unibo.it Objet : [CWB] [CQPweb] problem encountered when installing a corpus from scratch using install-corpus.php 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/11bb1111/attachment.html>
More information about the CWB
mailing list