<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Thanks for this! I’ve fixed the install-corpus.php script in the repo.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">(I think. Pending other bug reports.)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> cwb-bounces@sslmit.unibo.it <cwb-bounces@sslmit.unibo.it>
<b>On Behalf Of </b>wu liangping<br>
<b>Sent:</b> 27 July 2021 04:06<br>
<b>To:</b> Open source development of the Corpus WorkBench <cwb@sslmit.unibo.it><br>
<b>Subject:</b> Re: [CWB] [CQPweb] problem encountered when installing a corpus from scratch using install-corpus.php<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">I think I've got it. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">The version info part in install-corpus.php says: "This script tracks the install-corpus form." If we look at what happens when we submit that form to the server
(in Chrome F12 will do the job), the url link explains everything.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Problem solved.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Best,<br>
WU Liangping</span><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:gray"><br>
</span><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">
<o:p></o:p></span></p>
</div>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">At 2021-07-26 14:21:53, "wu liangping" <<a href="mailto:liangpingwu@126.com">liangpingwu@126.com</a>> wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm" id="isReplyContent">
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Dear all,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">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.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">I have a tiny (experimental) corpus test.txt with only two columns:<o:p></o:p></span></p>
</div>
<div>
<pre><span style="color:black"><text id="sample"><o:p></o:p></span></pre>
<pre><span style="color:black"><s><o:p></o:p></span></pre>
<pre><span style="color:black">I I<o:p></o:p></span></pre>
<pre><span style="color:black">am am<o:p></o:p></span></pre>
<pre><span style="color:black">just just<o:p></o:p></span></pre>
<pre><span style="color:black">a a<o:p></o:p></span></pre>
<pre><span style="color:black">testing testing<o:p></o:p></span></pre>
<pre><span style="color:black">line line<o:p></o:p></span></pre>
<pre><span style="color:black">. .<o:p></o:p></span></pre>
<pre><span style="color:black"></s><o:p></o:p></span></pre>
<pre><span style="color:black"><s><o:p></o:p></span></pre>
<pre><span style="color:black">I I<o:p></o:p></span></pre>
<pre><span style="color:black">am am<o:p></o:p></span></pre>
<pre><span style="color:black">just just<o:p></o:p></span></pre>
<pre><span style="color:black">another another<o:p></o:p></span></pre>
<pre><span style="color:black">testing testing<o:p></o:p></span></pre>
<pre><span style="color:black">line line<o:p></o:p></span></pre>
<pre><span style="color:black">. .<o:p></o:p></span></pre>
<pre><span style="color:black"></s><o:p></o:p></span></pre>
<pre><span style="color:black"></text><o:p></o:p></span></pre>
<pre><span style="color:black">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:<o:p></o:p></span></pre>
<pre><span style="color:black">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"<o:p></o:p></span></pre>
<pre><span style="color:black">However, it keeps saying that "You must specify at least one file to include in the corpus!" (my CQPweb version is 3.2.43)<o:p></o:p></span></pre>
<pre><span style="color:black">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.<o:p></o:p></span></pre>
<pre><span style="color:black">Any hint? <o:p></o:p></span></pre>
<pre><span style="color:black">Thanks for any input.<o:p></o:p></span></pre>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Best,<br>
WU Liangping</span><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:gray"><br>
</span><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">
<o:p></o:p></span></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>