<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:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@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:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 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:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
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;
        mso-fareast-language:EN-GB;}
span.m-7218544763997407141k
        {mso-style-name:m_-7218544763997407141k;}
span.m-7218544763997407141nf
        {mso-style-name:m_-7218544763997407141nf;}
span.m-7218544763997407141p
        {mso-style-name:m_-7218544763997407141p;}
span.m-7218544763997407141nv
        {mso-style-name:m_-7218544763997407141nv;}
span.m-7218544763997407141o
        {mso-style-name:m_-7218544763997407141o;}
span.m-7218544763997407141nx
        {mso-style-name:m_-7218544763997407141nx;}
span.m-7218544763997407141s2
        {mso-style-name:m_-7218544763997407141s2;}
span.m-7218544763997407141si
        {mso-style-name:m_-7218544763997407141si;}
span.m-7218544763997407141nb
        {mso-style-name:m_-7218544763997407141nb;}
span.EmailStyle30
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">OK, so the problem is other than what I thought it was.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">When you get that blank page, is there a PHP error in the httpd log? IF so, can you copy-paste it in a reply? Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,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:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,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:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it]
<b>On Behalf Of </b>Hermann Lai<br>
<b>Sent:</b> 25 June 2018 05:05<br>
<b>To:</b> Open source development of the Corpus WorkBench &lt;cwb@sslmit.unibo.it&gt;<br>
<b>Subject:</b> Re: [CWB] Incorrect total words count in a Traditional Chinese corpus on CQPweb<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">I am sorry. The new version does not help.&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">After I replace the old version with the new version. I go to &quot;Corpus frequency list controls&quot; and try to &quot;Update CWB text-position records&quot;. It redirect me to&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://localhost/cqpweb/canton1/execute.php?function=populate_corpus_cqp_positions&amp;args=canton1&amp;locationAfter=index.php%3FthisQ%3DmanageFreqLists%26uT%3Dy&amp;uT=y">http://localhost/cqpweb/canton1/execute.php?function=populate_corpus_cqp_positions&amp;args=canton1&amp;locationAfter=index.php%3FthisQ%3DmanageFreqLists%26uT%3Dy&amp;uT=y</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">with a blank page.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">However, &quot;Recreate CWB frequency table&quot; and &quot;Recreate frequency tables&quot; redirect me to &quot;Corpus frequency list controls&quot;.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I try to reinstall the corpus again but the blank page problem is still there.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Lai<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">2018-06-21 21:10 GMT&#43;08:00 Hardie, Andrew &lt;<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>&gt;:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Hmm. I think this is a bug already fixed after 3.2.11.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">The culprit is, if I recall correctly the function “update_corpus_sizes” – to be found in the file
 metadata.inc.php.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Old version:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<pre style="vertical-align:baseline"><span class="m-7218544763997407141k"><b><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">function</span></b></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141nf"><span style="font-size:10.5pt;color:blue;border:none windowtext 1.0pt;padding:0cm">update_corpus_size</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span></span><span class="m-7218544763997407141nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$corpus</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141o"><span style="font-size:10.5pt;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141k"><b><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">NULL</span></b></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">)</span></span><o:p></o:p></pre>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">{</span><o:p></o:p></p>
<pre style="vertical-align:baseline"><span style="font-size:10.5pt;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="m-7218544763997407141nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$corpus</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141o"><span style="font-size:10.5pt;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span></span><span style="font-size:10.5pt;color:#555555"> <span class="m-7218544763997407141nx"><span style="border:none windowtext 1.0pt;padding:0cm">safe_specified_or_global_corpus</span></span><span class="m-7218544763997407141p"><span style="border:none windowtext 1.0pt;padding:0cm">(</span></span></span><span class="m-7218544763997407141nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$corpus</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span></span><o:p></o:p></pre>
<pre style="vertical-align:baseline"><span style="font-size:10.5pt;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="m-7218544763997407141nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$result</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141o"><span style="font-size:10.5pt;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span></span><span style="font-size:10.5pt;color:#555555"> <span class="m-7218544763997407141nx"><span style="border:none windowtext 1.0pt;padding:0cm">do_mysql_query</span></span><span class="m-7218544763997407141p"><span style="border:none windowtext 1.0pt;padding:0cm">(</span></span></span><span class="m-7218544763997407141s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">&quot;select sum(words), count(*) from text_metadata_for_</span></span><span class="m-7218544763997407141si"><b><span style="font-size:10.5pt;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$corpus</span></b></span><span class="m-7218544763997407141s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">&quot;</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span></span><o:p></o:p></pre>
<pre style="vertical-align:baseline"><span style="font-size:10.5pt;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="m-7218544763997407141k"><b><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">list</span></b></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span></span><span class="m-7218544763997407141nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$ntok</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">,</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$ntext</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">)</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141o"><span style="font-size:10.5pt;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141nb"><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">mysql_fetch_row</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span></span><span class="m-7218544763997407141nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$result</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span></span><o:p></o:p></pre>
<pre style="vertical-align:baseline"><span style="font-size:10.5pt;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="m-7218544763997407141nx"><span style="border:none windowtext 1.0pt;padding:0cm">do_mysql_query</span></span><span class="m-7218544763997407141p"><span style="border:none windowtext 1.0pt;padding:0cm">(</span></span></span><span class="m-7218544763997407141s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">&quot;update corpus_info set size_tokens = </span></span><span class="m-7218544763997407141si"><b><span style="font-size:10.5pt;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$ntok</span></b></span><span class="m-7218544763997407141s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">, size_texts = </span></span><span class="m-7218544763997407141si"><b><span style="font-size:10.5pt;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$ntext</span></b></span><span class="m-7218544763997407141s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm"> where corpus = '</span></span><span class="m-7218544763997407141si"><b><span style="font-size:10.5pt;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$corpus</span></b></span><span class="m-7218544763997407141s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">'&quot;</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span></span><o:p></o:p></pre>
<pre style="vertical-align:baseline"><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">}</span></span><o:p></o:p></pre>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">New version:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<pre style="vertical-align:baseline"><span class="m-7218544763997407141k"><b><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">function</span></b></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141nf"><span style="font-size:10.5pt;color:blue;border:none windowtext 1.0pt;padding:0cm">update_corpus_size</span></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span></span><span class="m-7218544763997407141nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$corpus</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141o"><span style="font-size:10.5pt;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span></span><span style="font-size:10.5pt;color:#555555"> </span><span class="m-7218544763997407141k"><b><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">NULL</span></b></span><span class="m-7218544763997407141p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">)</span></span><o:p></o:p></pre>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">{</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$corpus</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
<span style="border:none windowtext 1.0pt;padding:0cm">safe_specified_or_global_corpus(</span></span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$corpus</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$result</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
<span style="border:none windowtext 1.0pt;padding:0cm">do_mysql_query(</span></span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">&quot;select count(*) from text_metadata_for_</span><b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$corpus</span></b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">&quot;</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:green;border:none windowtext 1.0pt;padding:0cm">list</span></b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$ntext</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">)</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:green;border:none windowtext 1.0pt;padding:0cm">mysql_fetch_row</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$result</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$info</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
<span style="border:none windowtext 1.0pt;padding:0cm">get_corpus_info(</span></span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$corpus</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:green;border:none windowtext 1.0pt;padding:0cm">global</span></b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$cqp</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:green;border:none windowtext 1.0pt;padding:0cm">if</span></b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
<span style="border:none windowtext 1.0pt;padding:0cm">(</span></span><b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:green;border:none windowtext 1.0pt;padding:0cm">empty</span></b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$cqp</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">))</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="border:none windowtext 1.0pt;padding:0cm">connect_global_cqp();</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$cqp</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#666666;border:none windowtext 1.0pt;padding:0cm">-&gt;</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#7D9029;border:none windowtext 1.0pt;padding:0cm">set_corpus</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$info</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#666666;border:none windowtext 1.0pt;padding:0cm">-&gt;</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#7D9029;border:none windowtext 1.0pt;padding:0cm">cqp_name</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$ntok</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#666666;border:none windowtext 1.0pt;padding:0cm">=</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">
</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$cqp</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#666666;border:none windowtext 1.0pt;padding:0cm">-&gt;</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#7D9029;border:none windowtext 1.0pt;padding:0cm">get_corpus_tokens</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">();</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="border:none windowtext 1.0pt;padding:0cm">
do_mysql_query(</span></span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">&quot;update corpus_info set size_tokens =
</span><b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$ntok</span></b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">, size_texts
 = </span><b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$ntext</span></b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BA2121;border:none windowtext 1.0pt;padding:0cm"> where
 corpus = '</span><b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$corpus</span></b><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">'&quot;</span><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">);</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555;border:none windowtext 1.0pt;padding:0cm">}</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Can I suggest that you replace the “old version” in your code with the “new version”, and redo frequency
 list setup?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">That may well fix the issue. But if not, let me know…</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">best</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Andrew.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> [mailto:<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>]
<b>On Behalf Of </b>Hermann Lai<br>
<b>Sent:</b> 19 June 2018 20:10</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>To:</b> Open source development of the Corpus WorkBench &lt;<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>&gt;<br>
<b>Subject:</b> Re: [CWB] Incorrect total words count in a Traditional Chinese corpus on CQPweb<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">No, I didn't get any messages when I use the&nbsp;frequency list controls.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am using CQPwebinabox&nbsp;<span style="font-family:&quot;Verdana&quot;,sans-serif;color:black">Esmeralda (CQPweb 3.2.11) and CWB 3.4.8(checked by using &quot;cqb -v&quot;).</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:&quot;Verdana&quot;,sans-serif;color:black">Regards,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:&quot;Verdana&quot;,sans-serif;color:black">Lai</span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">2018-06-19 23:06 GMT&#43;08:00 Hardie, Andrew &lt;<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>&gt;:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Did you get any odd messages when you ran the frequency-list setup on CQPweb?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">If not – what version of the code do you have?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">best</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">Andrew.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US">From:</span></b><span lang="EN-US">
<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> [mailto:<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>]
<b>On Behalf Of </b>Hermann Lai<br>
<b>Sent:</b> 19 June 2018 11:32<br>
<b>To:</b> Open source development of the Corpus WorkBench &lt;<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>&gt;<br>
<b>Subject:</b> Re: [CWB] Incorrect total words count in a Traditional Chinese corpus on CQPweb</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">part of the output of &quot;cwb-decode -C CANTON1 -ALL | less&quot;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">&lt;s&gt;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">&lt;text&gt;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">&lt;text_id T01&gt;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">中環</span><span style="font-size:10.5pt">&nbsp; &nbsp; N&nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">中環</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">保育</span><span style="font-size:10.5pt">&nbsp; &nbsp; V&nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">保育</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">奇觀</span><span style="font-size:10.5pt">&nbsp; &nbsp; N&nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">奇觀</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">:</span><span style="font-size:10.5pt">&nbsp; &nbsp; &nbsp; PU&nbsp; &nbsp; &nbsp;
</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">:</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">孫中山</span><span style="font-size:10.5pt">&nbsp; N&nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">孫中山</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">史蹟</span><span style="font-size:10.5pt">&nbsp; &nbsp; N&nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">史蹟</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">徑</span><span style="font-size:10.5pt">&nbsp; &nbsp; &nbsp; N&nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">徑</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">至</span><span style="font-size:10.5pt">&nbsp; &nbsp; &nbsp; CONJ&nbsp; &nbsp;
</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">至</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">大館</span><span style="font-size:10.5pt">&nbsp; &nbsp; N&nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:10.5pt;font-family:&quot;MS Gothic&quot;">大館</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">&lt;/text_id&gt;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">&lt;/text&gt;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">&lt;/s&gt;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">&nbsp;</span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.5pt">part of the&nbsp;output of &quot;cwb-described-corpus -s CANTON1&quot;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">============================================================<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Corpus: CANTON1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">============================================================<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">description:&nbsp; &nbsp;&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">registry file:&nbsp; /usr/local/share/cwb/registry/canton1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">home directory: /usr/local/corpora/data/canton1/<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">info file:&nbsp; &nbsp; &nbsp; /usr/local/corpora/data/canton1/.info<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">size (tokens):&nbsp; 23<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; 3 positional attributes<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; 3 structural attributes<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; 0 alignment&nbsp; attributes<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">p-ATT word&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;23 tokens,&nbsp; &nbsp; &nbsp; &nbsp;22 types<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">p-ATT pos&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 23 tokens,&nbsp; &nbsp; &nbsp; &nbsp; 8 types<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">p-ATT lemma&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 23 tokens,&nbsp; &nbsp; &nbsp; &nbsp;22 types<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">s-ATT s&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 regions<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">s-ATT text&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2 regions<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">s-ATT text_id&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 regions (with annotations)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">It seems that CWB can recognize the number of words but CQPweb doesn't.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Lai<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">2018-06-19 15:43 GMT&#43;08:00 Stefan Evert &lt;<a href="mailto:stefanML@collocations.de" target="_blank">stefanML@collocations.de</a>&gt;:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">What does the corpus look like if you decode it from the CWB index with the following command?<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; cwb-decode -C CANTON1 -ALL | less<br>
<br>
Can you show us part of the output?&nbsp; It would also be useful to see the output of<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; cwb-described-corpus -s CANTON1<br>
<br>
<br>
One possibility I can think of is that your linebreaks are messed up so that CWB treats everything within the text region as a single long line.
<br>
<br>
Best,<br>
Stefan<br>
<br>
<br>
&gt; On 19 Jun 2018, at 09:26, Hermann Lai &lt;<a href="mailto:halflifelai@gmail.com" target="_blank">halflifelai@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt; I am using CQPwebinabox and I have indexed a Traditonal Chinese corpus called &quot;canton1&quot; by using two commands:<br>
&gt; <br>
&gt; sudo cwb-encode -d /usr/local/corpora/data/canton1 -f /home/user/Desktop/corpora/canton1/canton1.vrt -R /usr/local/share/cwb/registry/canton1 -c utf8 -xsB -P pos -P lemma -S s:0 -S text:0&#43;id<br>
&gt; <br>
&gt; sudo cwb-make -V CANTON1<br>
&gt; <br>
&gt; After that, I install the corpus onto CQPweb. Most of the thing are correct. However, the total number of corpus texts is as same as the total words in all corpus texts.<br>
<br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">--
<o:p></o:p></p>
<div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:13.5pt">Gaspard Germannson</span></i><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">--
<o:p></o:p></p>
<div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:13.5pt">Gaspard Germannson</span></i><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><i><span style="font-size:13.5pt">Gaspard Germannson</span></i><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>