<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 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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:"Verdana","sans-serif";color:#1F497D">Yes – the stray CR will have attached itself to the tag at the end of the line, so what you thought was tagged NN was actually tagged NN{CR}.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">This is a common enough gotcha that we should probably give cwb-encode the ability to spot CR on POSIX and raise the alarm.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Another thing for the TODO list!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it]
<b>On Behalf Of </b>Albert Gatt<br>
<b>Sent:</b> 06 November 2012 13:44<br>
<b>To:</b> Open source development of the Corpus WorkBench<br>
<b>Subject:</b> Re: [CWB] Problem encoding corpus with POS tags<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I seem to have found a solution to the problem. It seems it was caused by line endings -- some of my files had CRLF endings instead of plain old unix-style ones. The search with POS works fine now.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks for your help.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">albert<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 5 November 2012 15:34, Hardie, Andrew <<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi Albert,<br>
<br>
You may need to check whether pos has been configured properly as primary annotation.<br>
<br>
As a superuser, go to the main corpus search page then on the menu select > Manage Annotation. See if the "Primary annotation" slot has POS selected. If not, change and update, then it should work.<br>
<br>
If, on the other hand, pos *IS* properly selected on that screen, let me know, and I'll look into what else might be causing the problem.<br>
<br>
(I am not sure why sometimes the primary annotation is not selected correctly at index time. A bug, of course, but none one I've managed to track down yet as it seems to be intermittent. I'll work it out eventually.)<br>
<br>
best<br>
<br>
Andrew.<br>
<br>
==========================<br>
From: <a href="mailto:cwb-bounces@sslmit.unibo.it">cwb-bounces@sslmit.unibo.it</a> [mailto:<a href="mailto:cwb-bounces@sslmit.unibo.it">cwb-bounces@sslmit.unibo.it</a>] On Behalf Of Albert Gatt<br>
Sent: 05 November 2012 14:09<br>
To: <a href="mailto:cwb@sslmit.unibo.it">cwb@sslmit.unibo.it</a><br>
Subject: [CWB] Problem encoding corpus with POS tags<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
I'm trying to install a corpus which has word + POS, via CQPWeb. An example of the data is shown below:<br>
<br>
<text id="lh1"><br>
<s id="0"><br>
Anqas MV<br>
għaraftek VV<br>
... PUN<br>
</s><br>
...<br>
</text><br>
<br>
When I install, I leave the s-attributes as default (since "s" is the only structural attribute I have, apart from "text") and specify "pos" as the primary p-attribute.<br>
<br>
The corpus installs without problems, and I can use CQPWeb's frequency list functionality to see a list of different parts of speech, as well as word tokens. I can successfully run queries for words. However, any query that involves POS gives me no results
(e.g. "kien_VA" where "kien" is a word and "VA" is a tag). <br>
<br>
I'm not sure where the problem lies.<br>
<br>
thanks<br>
albert<br>
<br>
<br>
--<br>
-----------------------------------------------------------------<br>
Albert Gatt<br>
Institute of Linguistics <br>
Rm 22, Block A<br>
Car Park 6<br>
University of Malta<br>
Tal-Qroqq Msida MSD2080<br>
Malta<br>
<br>
tel: <a href="tel:%28%2B356%29%202340%202150">(+356) 2340 2150</a><br>
<a href="http://staff.um.edu.mt/albert.gatt/" target="_blank">http://staff.um.edu.mt/albert.gatt/</a><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
<a href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal">-----------------------------------------------------------------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Albert Gatt<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Institute of Linguistics <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Rm 22, Block A<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Car Park 6<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">University of Malta<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Tal-Qroqq Msida MSD2080<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Malta<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">tel: (+356) 2340 2150<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://staff.um.edu.mt/albert.gatt/" target="_blank">http://staff.um.edu.mt/albert.gatt/</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>