<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;}
/* 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.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-GB;}
span.p
        {mso-style-name:p;}
span.nv
        {mso-style-name:nv;}
span.o
        {mso-style-name:o;}
span.nx
        {mso-style-name:nx;}
span.c1
        {mso-style-name:c1;}
span.s2
        {mso-style-name:s2;}
span.si
        {mso-style-name:si;}
span.k
        {mso-style-name:k;}
span.nb
        {mso-style-name:nb;}
span.na
        {mso-style-name:na;}
span.nf
        {mso-style-name:nf;}
.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">Hmm. I think this is a bug already fixed after 3.2.11.<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">The culprit is, if I recall correctly the function “update_corpus_sizes” – to be found in the file metadata.inc.php.<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">Old version:<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>
<pre style="vertical-align:baseline"><span class="k"><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="nf"><span style="font-size:10.5pt;color:blue;border:none windowtext 1.0pt;padding:0cm">update_corpus_size</span></span><span class="p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span></span><span class="nv"><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="o"><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="k"><b><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">NULL</span></b></span><span class="p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">)<o:p></o:p></span></span></pre>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<pre style="vertical-align:baseline"><span style="font-size:10.5pt;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="nv"><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="o"><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="nx"><span style="border:none windowtext 1.0pt;padding:0cm">safe_specified_or_global_corpus</span></span><span class="p"><span style="border:none windowtext 1.0pt;padding:0cm">(</span></span></span><span class="nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$corpus</span></span><span class="p"><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"><o:p></o:p></span></pre>
<pre style="vertical-align:baseline"><span style="font-size:10.5pt;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="nv"><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="o"><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="nx"><span style="border:none windowtext 1.0pt;padding:0cm">do_mysql_query</span></span><span class="p"><span style="border:none windowtext 1.0pt;padding:0cm">(</span></span></span><span class="s2"><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="si"><b><span style="font-size:10.5pt;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$corpus</span></b></span><span class="s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">&quot;</span></span><span class="p"><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"><o:p></o:p></span></pre>
<pre style="vertical-align:baseline"><span style="font-size:10.5pt;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="k"><b><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">list</span></b></span><span class="p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span></span><span class="nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$ntok</span></span><span class="p"><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="nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$ntext</span></span><span class="p"><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="o"><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="nb"><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">mysql_fetch_row</span></span><span class="p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span></span><span class="nv"><span style="font-size:10.5pt;color:#19177C;border:none windowtext 1.0pt;padding:0cm">$result</span></span><span class="p"><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"><o:p></o:p></span></pre>
<pre style="vertical-align:baseline"><span style="font-size:10.5pt;color:#555555">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="nx"><span style="border:none windowtext 1.0pt;padding:0cm">do_mysql_query</span></span><span class="p"><span style="border:none windowtext 1.0pt;padding:0cm">(</span></span></span><span class="s2"><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="si"><b><span style="font-size:10.5pt;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$ntok</span></b></span><span class="s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">, size_texts = </span></span><span class="si"><b><span style="font-size:10.5pt;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$ntext</span></b></span><span class="s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm"> where corpus = '</span></span><span class="si"><b><span style="font-size:10.5pt;color:#BB6688;border:none windowtext 1.0pt;padding:0cm">$corpus</span></b></span><span class="s2"><span style="font-size:10.5pt;color:#BA2121;border:none windowtext 1.0pt;padding:0cm">'&quot;</span></span><span class="p"><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"><o:p></o:p></span></pre>
<pre style="vertical-align:baseline"><span class="p"><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"><o:p></o:p></span></pre>
<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"><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">New version:<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>
<pre style="vertical-align:baseline"><span class="k"><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="nf"><span style="font-size:10.5pt;color:blue;border:none windowtext 1.0pt;padding:0cm">update_corpus_size</span></span><span class="p"><span style="font-size:10.5pt;color:#555555;border:none windowtext 1.0pt;padding:0cm">(</span></span><span class="nv"><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="o"><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="k"><b><span style="font-size:10.5pt;color:green;border:none windowtext 1.0pt;padding:0cm">NULL</span></b></span><span class="p"><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"><o:p></o:p></span></pre>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="vertical-align:baseline"><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><o:p></o:p></span></p>
<p class="MsoNormal" style="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><span style="font-size:10.5pt;font-family:&quot;Courier New&quot;;color:#555555"><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">Can I suggest that you replace the “old version” in your code with the “new version”, and redo frequency list setup?<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">That may well fix the issue. But if not, let me know…<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"><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"><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> 19 June 2018 20:10<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">No, I didn't get any messages when I use the&nbsp;frequency list controls.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">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"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,sans-serif;color:black">Regards,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,sans-serif;color:black">Lai</span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">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-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">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="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>