<div dir="ltr">Thanks again Brian. I'll give this a try.<br><br>Peredur<br><br>On Tuesday, 18 April 2017 13:44:36 UTC+8, Brian MacWhinney wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div bgcolor="white" link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Peredur,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">You can also do this with CHSTRING using this command:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">chstring +t%aut +s"*.*" "*-*" *.cha +1</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Make a complete copy of all of your files before trying this, because the +1 switch overwrites the originals, and there could be mistakes.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">You have to run that command several times to make sure you change all the periods.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">GREP is a part of UNIX that uses REGEX (regular expressions) and there are books about this.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">-- Brian</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">'Peredur Webb-Davies' via chibolts <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Ct7kVMUHAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">chib...@googlegroups.com</a>><br>
<b>Reply-To: </b>"<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Ct7kVMUHAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">chib...@googlegroups.com</a>" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Ct7kVMUHAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">chib...@googlegroups.com</a>><br>
<b>Date: </b>Tuesday, 18 April 2017 at 1:16 PM<br>
<b>To: </b>chibolts <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Ct7kVMUHAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">chib...@googlegroups.com</a>><br>
<b>Subject: </b>Re: Having difficulty using KWAL command to search for strings which involve periods</span></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Thanks Brian. Can you please point me to where I can learn about GREP commands? I can't find a reference to them in the CHAT or CLAN manuals.<br>
<br>
Peredur<br>
<br>
<br>
On Tuesday, 18 April 2017 12:20:30 UTC+8, Brian MacWhinney wrote: </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"><span style="font-size:11.0pt;font-family:Calibri">Yes, the problem is your use of periods. CLAN considers the period to be a sentence delimiter. I replaced them with a dash and
then used the command </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">kwal +s"see-V-INFIN*" +t%aut test.cha</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">There were no problems. The example with one line changed is attached. It should easy enough to fix these using a GREP command.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">-Brian MacWhinney</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"> </span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From:
</span></b><span style="font-family:Calibri;color:black">'Peredur Webb-Davies' via chibolts <<a>chib...@googlegroups.com</a>><br>
<b>Reply-To: </b>"<a>chib...@googlegroups.com</a>" <<a>chib...@googlegroups.com</a>><br>
<b>Date: </b>Tuesday, 18 April 2017 at 10:26 AM<br>
<b>To: </b>chibolts <<a>chib...@googlegroups.com</a>><br>
<b>Subject: </b>Having difficulty using KWAL command to search for strings which involve periods</span></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
I'm trying to analyse our corpus of Welsh linguistic data which has been coded using CHAT. The corpus has multiple secondary tiers, and one of them is called %aut ('autoglossed tier') , which details word-by-word morphological glossing for each item in the
main tier.<br>
<br>
I want to use the KWAL command in CLAN to find certain items in the %aut tier, namely (at the moment) to find pronouns. The aim is to then extract the data from the relevant main tier, so that I have collated all tokens of that pronoun from a given set of data.
These pronouns have been glossed in %aut in the format e.g. your.ADJ.POSS.2S for a 2nd person singular pronoun. My assumption was that a command such as the following would find all items matching the search string in the %aut tier in (e.g.) the file called
davies2ag.cha:<br>
<br>
kwal +t%aut +syour.ADJ.POSS.2S davies1ag.cha<br>
<br>
However, this gives no results - even though I know there are instances of this token in that transcript. If you search for just +syour , for example, it finds those results (but cannot disambiguate between 2nd singular and plural forms, among other issues).
I assume the problem is presence of the periods/full stops in the %aut tier. <br>
<br>
I have tried using "" around the search string, I have tried to replace the stops with * and _ and ^_^, and I have also tried using COMBO instead of KWAL, but nothing helps. It says no items found.
<br>
<br>
I assume that there is an obvious answer that my very limited knowledge of coding is keeping from me, but if anyone can assist I would be hugely grateful!<br>
<br>
I can supply more details as required.<br>
<br>
Many thanks,<br>
<br>
Peredur Webb-Davies<br>
<br>
PS For info, here is a weblink to an example of a transcript, to show how it has been glossed etc.:
<a href="http://bangortalk.org.uk/chats/siarad/davies2.cha" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fbangortalk.org.uk%2Fchats%2Fsiarad%2Fdavies2.cha\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvgMG1Id3HQDC4Nr2_zE3OKu3EeQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fbangortalk.org.uk%2Fchats%2Fsiarad%2Fdavies2.cha\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvgMG1Id3HQDC4Nr2_zE3OKu3EeQ';return true;">http://bangortalk.org.uk/<wbr>chats/siarad/davies2.cha</a>
</p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">-- <br>
You received this message because you are subscribed to the Google Groups "chibolts" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to
<a>chibolts+u...@googlegroups.com</a><wbr>.<br>
To post to this group, send email to <a>chib...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/a53a72cd-fbd2-4cc5-9d04-3849a546b1c6%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/chibolts/a53a72cd-fbd2-4cc5-9d04-3849a546b1c6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/chibolts/a53a72cd-fbd2-4cc5-9d04-3849a546b1c6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;">
https://groups.google.com/d/<wbr>msgid/chibolts/a53a72cd-fbd2-<wbr>4cc5-9d04-3849a546b1c6%<wbr>40googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">
https://groups.google.com/d/<wbr>optout</a>.</p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal">-- <br>
You received this message because you are subscribed to the Google Groups "chibolts" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Ct7kVMUHAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">chibolts+u...@<wbr>googlegroups.com</a>.<br>
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Ct7kVMUHAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">chib...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/6d66a1e2-3740-471b-bde9-bb046a450a56%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/chibolts/6d66a1e2-3740-471b-bde9-bb046a450a56%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/chibolts/6d66a1e2-3740-471b-bde9-bb046a450a56%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;">
https://groups.google.com/d/<wbr>msgid/chibolts/6d66a1e2-3740-<wbr>471b-bde9-bb046a450a56%<wbr>40googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.<br>
<br>
</p>
</div>
</div>
</blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "chibolts" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com">chibolts+unsubscribe@googlegroups.com</a>.<br />
To post to this group, send email to <a href="mailto:chibolts@googlegroups.com">chibolts@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/4c5d1ee7-7369-423c-8cfe-98d649fb36b2%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/4c5d1ee7-7369-423c-8cfe-98d649fb36b2%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />