<div dir="ltr">Thank you so much Stefan, it&#39;s exactly what I was looking for :-)<div>Best,</div><div>Stefania</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-13 10:50 GMT+01:00 Stefan Evert <span dir="ltr">&lt;<a href="mailto:stefanML@collocations.de" target="_blank">stefanML@collocations.de</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On 13 Dec 2016, at 10:29, Stefania Spina &lt;<a href="mailto:stefania.spina@unistrapg.it">stefania.spina@unistrapg.it</a>&gt; wrote:<br>
&gt;<br>
&gt; I&#39;m running CWB 3.0 with a corpus of 350 texts, annotated with 350 different &lt;text id&quot;number&quot;&gt; tags.<br>
&gt; Can you suggest a way to extract the number of types for each of the 350 texts?<br>
&gt; With   cwb-lexdecode -S   I only get the total number of types.<br>
<br>
</span>That&#39;s because CWB doesn&#39;t keep statistics on individual texts, only for the entire corpus.  You&#39;ll have to count types for each text yourself.<br>
<br>
On a Linux / Mac command line, the following should work:<br>
<br>
        cwb-scan-corpus DICKENS text_id+0 word+0 | LANG=C cut -f2 | sort | uniq -c<br>
<br>
This will count the literal word forms. If you want lemmatized or case-insensitive counts, annotate them as a p-attribute and use it instead of word+0 above.  Case-insensitive counts can also be achieved with some additional trickery on the command line.<br>
<br>
Best,<br>
Stefan<br>
<br>
<br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/<wbr>mailman/listinfo/cwb</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Prof. Stefania Spina<br>Università per Stranieri di Perugia<br>Dipartimento di Scienze Umane e Sociali<br><a href="mailto:stefania.spina@unistrapg.it" target="_blank">stefania.spina@unistrapg.it</a><br><a href="https://unistrapg.academia.edu/StefaniaSpina" target="_blank">https://unistrapg.academia.edu/StefaniaSpina</a><br><br></div></div></div>
</div>