<div dir="ltr"><div dir="ltr">Hello Andrew and all,<div>We absolutely appreciate your help! It definitely sped up our progression in a very desperate time.</div><div>We have successfully presented bilingual context in a CQP query in terminal. </div><div>While we tried to replicate the results on CQPweb following the instructions on CQPweb manual chapter 8, there are still some unclear parts from our end.</div><div>From my understanding the first step is to install two separate bilingual corpus (we only adjusted the P flag) on CQPweb. (Does the handle of the courpus matter?)</div><div>Then we should create an a-attribute (e.g. test-chn in the first email) on cwb.</div><div>Lastly, we scan the registry for newly-added alignments, and the a-attribute should appear (e.g., test-chn in this context).</div><div>However the a-attribute never appear dispite declaring the a-attribute and alignment process done before installing the two corpus.</div><div>I'm sure we are missing some crucial steps in this process.</div><div>I can't confindently answer the two questions:</div><div><div>"First, does a corpus by the name of that attribute exist in CQPweb?</div><div>Second, is the alignment already registered within CQPweb?"</div></div><div>Because the attribute is shown in the registry file but I'm not sure if it exists in CQPweb (same with alignment).</div><div>Again, we cannot thank you enough for your help and desperately hope to hear from you soon! </div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br></div><div>Best,</div>Austin Yang (楊承洋)<div>MS in Cognitive Neuroscience, NCU<br><div>BS in Psychology, CYCU</div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 4, 2022 at 8:18 PM Hardie, Andrew <<a href="mailto:a.hardie@lancaster.ac.uk">a.hardie@lancaster.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-2439050307303174245">
<div lang="EN-GB" style="overflow-wrap: break-word;">
<div class="m_-8431187177048657510WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">PS, forgot to answer the CQPweb query – the answer is Yes. The ”how” in the CQPweb manual chapter 8, esp. sec 8.5 ff.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">best<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">Andrew.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> <a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> <<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>>
<b>On Behalf Of </b>Hardie, Andrew<br>
<b>Sent:</b> 04 October 2022 13:14<br>
<b>To:</b> Open source development of the Corpus WorkBench <<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>><br>
<b>Subject:</b> Re: [CWB] Bilingual corpus alignment<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">The name of an alignment attribute is the name of the corpus it “points at”.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">so, when working in TEST-EN,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"> show +test-chn;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">turns on display of the parallel text.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">CQP manual, chapter 5.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">best<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">Andrew.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> <a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> <<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>>
<b>On Behalf Of </b>Austin Yang<br>
<b>Sent:</b> 04 October 2022 01:47<br>
<b>To:</b> Open source development of the Corpus WorkBench <<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>><br>
<b>Subject:</b> Re: [CWB] Bilingual corpus alignment<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hey Andrew and all of the community, <u></u><u></u></p>
<div>
<p class="MsoNormal">Thanks for the reply! Your reply is greatly appreciated!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">This is my first time working with a bilingual corpus, so forgive me for my ignorance in advance.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I'm still a bit confused to what the alignment attribute. The alignment command is 'sudo cwb-align-import -r '/var/CQPweb/registry' -p test.algn'<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Output: Use of uninitialized value $12_keys in split at /usr/local/bin/cwb-align-import line 119, <$fn> line3. Alignment TEST-EN => TEST-CHN has been created with 7 non-empty beads.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I tried the 'show + test.algn', however it doesn't seem to work, and the registry file doesn't seem to give much information in this regard.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Does it mean the alignment failed? Or I didn't set a designated alignment attribute?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Another kind of out of scope question is that assuming everything works out in cqp. Is it possible to upload and present the bilingual part (assume some queried 'Taiwan' it should show a English segment containing 'Taiwan' and a Chinese
segment in the next line) in CQPweb?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Once again, any help is desperately needed and deeply appriciated!<br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best,<u></u><u></u></p>
</div>
<p class="MsoNormal">Austin Yang (<span lang="JA">楊承洋</span>) <u></u><u></u></p>
<div>
<p class="MsoNormal">MS in Cognitive Neuroscience, NCU<u></u><u></u></p>
<div>
<p class="MsoNormal">BS in Psychology, CYCU<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Oct 3, 2022 at 5:30 PM Hardie, Andrew <<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">You need to
</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt;text-indent:36pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">show +your_alignment_attribute</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">in CQP</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">best</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">Andrew.</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:9.6pt">
<span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:9.6pt">
<b><span lang="EN-US">From:</span></b><span lang="EN-US"> </span><a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank"><span lang="EN-US">cwb-bounces@sslmit.unibo.it</span></a><span lang="EN-US"> <</span><a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank"><span lang="EN-US">cwb-bounces@sslmit.unibo.it</span></a><span lang="EN-US">>
<b>On Behalf Of </b>Austin Yang<br>
<b>Sent:</b> 03 October 2022 02:44<br>
<b>To:</b> </span><a href="mailto:cwb@sslmit.unibo.it" target="_blank"><span lang="EN-US">cwb@sslmit.unibo.it</span></a><span lang="EN-US"><br>
<b>Subject:</b> [CWB] Bilingual corpus alignment</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:9.6pt">
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
Dear all, <u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
Recently I've encountered a problem using cwb's alignment encoding function.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
"Problem" might not be the accurate word but, I used a different alignment tool and fitted into cwb's standard format, and ran the regedit and encode procedure. This created an alx file in the source language index file. The tutorial says "This procedure only
creates an a-attribute in HOLMES-EN (source corpus), linking it to HOLMES-DE (target corpus).", but that's all I can find. I don't know how to use cqp/cwb to present sentence alignment (i.e. I imagine querying "Sherlock" in the source corpus, it will present
both the English and Dutch sentence including "Sherlock"). The attachment shows the command and output. I'm not even sure if the alignment is successful or not. Any help or information that sheds some light to this situation will be greatly appreciated!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
<br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
Best,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:9.6pt">
Austin Yang (<span lang="JA" style="font-family:"MS Gothic"">楊承洋</span>) <u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
MS in Cognitive Neuroscience, NCU<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">
BS in Psychology, CYCU<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:5pt;margin-left:9.6pt">
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=05%7C01%7Chardiea%40live.lancs.ac.uk%7C36490c971395430b40ea08daa601f725%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C638004824624462088%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eYfTrVy9fgflfhg1Zm6p%2BIH5Jt7kVmhrz%2FB9leH8Aao%3D&reserved=0" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</div></blockquote></div>