<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
/* 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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        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.code
        {mso-style-name:code;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
.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;,&quot;sans-serif&quot;;color:#1F497D">Can you tell me what version of the code you are using?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it]
<b>On Behalf Of </b>Andres Chandia<br>
<b>Sent:</b> 28 December 2013 17:51<br>
<b>To:</b> Open source development of the Corpus WorkBench<br>
<b>Subject:</b> Re: [CWB] problem at managing corpus metadata<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">yes, this is what I see in the registry:<br>
<span class="code">##</span><br>
<span class="code">## s-attributes (structural markup)</span><br>
<span class="code">##</span><br>
<br>
<span class="code"># &lt;name&gt; ... &lt;/name&gt;</span><br>
<span class="code">STRUCTURE name</span><br>
<br>
<span class="code"># &lt;lang&gt; ... &lt;/lang&gt;</span><br>
<span class="code">STRUCTURE lang</span><br>
<br>
<span class="code"># &lt;season&gt; ... &lt;/season&gt;</span><br>
<span class="code">STRUCTURE season</span><br>
<br>
<span class="code"># &lt;text id=&quot;..&quot;&gt; ... &lt;/text&gt;</span><br>
<span class="code"># (no recursive embedding allowed)</span><br>
<span class="code">STRUCTURE text</span><br>
<span class="code">STRUCTURE text_id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # [annotations]</span><br>
<br>
I didn't know if I should ad the &quot;id&quot; attribute also....<br>
anyway, I still get:<o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>My metadata is embedded in the XML of my corpus!<o:p></o:p></b></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center">&nbsp;<br>
No XML annotations found for this corpus. <o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal">thanks<br>
<br>
On Sat, December 28, 2013 18:06, Hardie, Andrew wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">That function reads the list of attributes straight from the registry file. Can you please check in the registry file that the s-attributes really have been indexed as per your expectations?
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Andrew.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<br>
Andres Chandia wrote:<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">Ok, I managed using A, but for B this is what I get :<o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>My metadata is embedded in the XML of my corpus!<o:p></o:p></b></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><br>
No XML annotations found for this corpus. <o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><br>
and I have indexed all the text attibutes as if they were s-attributes<br>
<br>
<br>
On Sat, December 28, 2013 03:40, Hardie, Andrew wrote:<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.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi Andres,</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;,&quot;sans-serif&quot;;color:#1F497D">What you are doing wrong, it would seem, is re-using the source data file as the input file for the
 metadata. This is not how it works.</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;,&quot;sans-serif&quot;;color:#1F497D">There are two ways to add metadata:</span><o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">A.</span><span style="font-size:7.0pt;color:#1F497D">
</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">From a tab-delimited table file, with one text per line, and fields in columns.
<em><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">This is the function you are using, and it is resulting in an error message because you are feeding back in the original vertical file, which is not in the expected format</span></em>.</span><o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">B.</span><span style="font-size:7.0pt;color:#1F497D">
</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">From XML in the original data.
<em><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">This is what you want to do</span></em>, but in order to do it you need to (a) have indexed all the attributes on the text element as s-attributes, (b) use the function labelled &#8220;Create metadata table from
 corpus XML annotations&#8221; &#8211; accessed via the button low down on the screen labelled &#8220;My metadata is embedded in the XML of my corpus!&#8221; &#8211; instead of the standard function.
</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;,&quot;sans-serif&quot;;color:#1F497D">Hope that clarifies.</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;,&quot;sans-serif&quot;;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;,&quot;sans-serif&quot;;color:#1F497D">Andrew.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><strong><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></strong><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
 Andres Chandia [mailto:andres@chandia.net] <br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Sent:</span></strong> 27 December 2013 14:45<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">To:</span></strong> Hardie, Andrew<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Cc:</span></strong> Open source development of the Corpus WorkBench<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Subject:</span></strong> problem at managing corpus metadata</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi there, so long...<br>
<br>
I have indexed a test corpus and now I'm trying to add some metadata to it but I always got error messages:<br>
<br>
this is what you can find at corpus:<br>
<br>
<s id="1"><br>
<span class="code">Almosnino almosnino NCMS000</span><br>
<span class="code">, , Fc</span><br>
<span class="code">Moshe moshe NCFS000</span><br>
<span class="code">. . Fp</span><br>
<span class="code">. . Fp</span><br>
</s><br>
<s id="2"><br>
<span class="code">Regimiento regimiento NCMS000</span><br>
<span class="code">de de SPS00</span><br>
<span class="code">la el DA0FS0</span><br>
<span class="code">vida vida NCFS000</span><br>
<span class="code">. . Fp</span><br>
<span class="code">. . Fp</span><br>
</s><br>
<s id="3"><br>
<span class="code">Salónica salónica NCFS000</span><br>
<span class="code">1564 1564 Z</span><br>
<span class="code">Transcription transcription NCFS000</span><br>
<span class="code">. . Fp</span><br>
<span class="code">. . Fp</span><br>
</s><br>
<br>
<br>
I add an image of the settings that I use to install metadata<br>
<br>
and this is what I always got:<br>
<br>
<span class="code">CQPweb encountered an error and could not continue. The data source you specified for the text metadata contains badly-formatted text ID codes, as follows: ','; '.'; ''; ''; ''; ''; ''; ' CQPweb v3.0.7 © 2008-2012 Corpus and tagset help You
 are logged in as user [admin] </span><br>
<br>
but as you can see at the corpus above none of the metadatas contains what the error message says....<br>
<br>
well, I don't know what I'm doing wrong, thanks in advance for your help....<br>
<br>
_______________________<br>
andrés chandía<br>
<a href="http://www.chandia.net" target="_blank" title="This external link will open in a new window"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none">[IMAGE REMOVED]</span></a><br>
administrador de<br>
<a href="http://parles.upf.edu" target="_blank" title="This external link will open in a new
window">parles.upf.edu</a><br>
<a href="http://psicoaching.net" target="_blank" title="This
external link will open in a new window">psicoaching.net</a><br>
<a href="http://koyaktumapuche.net" target="_blank" title="This external link will open in a new window">mapuche koyaktu</a><br>
<a href="http://corporacionkoyaktu.net" target="_blank" title="This external
link will open in a new window">ong mapuche koyaktu</a><br>
<span style="font-size:18.0pt;font-family:Webdings;color:#4F6228">P </span><span style="font-size:10.0pt;color:#4F6228">No imprima innecesariamente. ¡Cuide el medio ambiente!</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<br>
_______________________<br>
andrés chandía<br>
<a href="http://www.chandia.net" target="_blank" title="This external link will open in a new window"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1025" src="cid:~WRD077.jpg" alt="Image removed by sender. chandia.net"></span></a><a href="https://twitter.com/andreschandia" target="_blank" title="This external link will open in a new window"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1026" src="cid:~WRD077.jpg" alt="Image removed by sender."></span></a><br>
administrador de<br>
<a href="http://parles.upf.edu" target="_blank" title="This external
link will open in a new window">parles.upf.edu</a><br>
<a href="http://psicoaching.net" target="_blank" title="This external link will open
in a new window">psicoaching.net</a><br>
<a href="http://koyaktumapuche.net" target="_blank" title="This external link will open in a new window">mapuche koyaktu</a><br>
<a href="http://corporacionkoyaktu.net" target="_blank" title="This external link will
open in a new window">ong mapuche koyaktu</a><br>
<span style="font-size:18.0pt;font-family:Webdings;color:#4F6228">P </span><span style="font-size:10.0pt;color:#4F6228">No imprima innecesariamente. ¡Cuide el medio ambiente!</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<br>
_______________________<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;andrés chandía<br>
<a href="http://www.chandia.net" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1027" src="cid:~WRD077.jpg" alt="Image removed by sender. chandia.net"></span></a><a href="https://twitter.com/andreschandia" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1028" src="cid:~WRD077.jpg" alt="Image removed by sender."></span></a><br>
administrador de<br>
<a href="http://parles.upf.edu">parles.upf.edu</a><br>
<a href="http://psicoaching.net">psicoaching.net</a><br>
<a href="http://koyaktumapuche.net">mapuche koyaktu</a><br>
<a href="http://corporacionkoyaktu.net">ong mapuche koyaktu</a><br>
<span style="font-size:18.0pt;font-family:Webdings;color:#4F6228">P </span><span style="font-size:10.0pt;color:#4F6228">No imprima innecesariamente. ¡Cuide el medio ambiente!</span><o:p></o:p></p>
</div>
</body>
</html>