<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Sarah,<div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>In this case the problem is that GEM does not copy @Languages: header to its output. Add option +t@ or +t@Languages to GEM command.<br class=""><div class="">
<br class=""><br class="">Leonid.
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Feb 25, 2020, at 07:44, Sarah Surrain <<a href="mailto:sarahsurrain@gmail.com" class="">sarahsurrain@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear Leonid,</div><div class=""><br class=""></div><div class="">My apologies for the typo! The languages header I used was</div><div class=""><br class=""></div><div class="">@Languages: spa, eng</div><div class=""><br class=""></div><div class="">-Sarah<br class=""></div><br class="">On Monday, February 24, 2020 at 10:08:07 PM UTC-5, Leonid Spektor wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div style="word-wrap:break-word;line-break:after-white-space" class="">Sarah,<div class=""><br class=""></div><div class=""><span style="white-space:pre" class=""> </span>English language code is three letters as all other language codes are. For English the code is "eng".<br class=""><div class="">
<br class=""><br class="">Leonid.
</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On Feb 24, 2020, at 20:18, Sarah Surrain <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="95h8ZK__AwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" class="">sarahs...@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Hello,<br class=""><br class="">I am working with Spanish-English bilingual data from parent-child dyads. In the header, I have specified the languages as <br class="">@Languages: spa, en<br class="">and I have used [- eng] precodes for English utterances and @s tags on English words embedded in Spanish utterances.<br class=""><br class="">I would like to use gem markers to segment the transcripts by activity (such as book reading) and then run a freq command to count the number of tokens in Spanish and English used by the parent and child during that activity.<br class=""><br class="">I used this command to retrieve only the book reading activities and create new CHAT files with headers:<br class="">gem +sbook +d1 +f *.cha<br class=""><br class="">Then I tried these commands on the output to create an Excel file with the types, tokens, TTR and MATTR for each language:<br class="">freq +l +s*@s:eng +d3 +b10 *.cha<br class="">freq +l +s*@s:spa +d3 +b10 *.cha<br class=""><br class="">However, I am getting these errors: <br class="">Language "eng" is not defined on "@Languages:" header tier.<br class="">and<br class="">Illegal use of "@s", no alternative language in position 1 defined on @Language: tier.<br class=""><br class="">I can fix this by manually pasting the @Languages line into the header in the new file that I created using the gem command. Is there a way to automatically create CHAT files using the gem command that retain the @Languages line?<br class=""><br class="">(I also tried the gemfreq command (gemfreq +sbook +l +s*@s:eng +d3 +b10 *.cha) but I wasn't able to create an excel worksheet with the types, tokens, etc for each participant. I got the error: The only +d levels allowed are 0–1).<br class=""><br class="">Thank you!<br class=""><br class=""><div class="">Sarah Surrain <span style="font-family:sans-serif;font-size:inherit;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important" class=""><br class=""></span></div><div class=""><span style="font-family:sans-serif;font-size:inherit;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important" class=""><br class=""></span></div>Sarah Surrain, Ed.M.<br class="">Ph.D. Candidate<br class="">Harvard University FAS | GSE<br class=""><a href="https://scholar.harvard.edu/sarahsurrain" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fscholar.harvard.edu%2Fsarahsurrain\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRn0u5wRdEza-43e4y1_xDAlxKg';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fscholar.harvard.edu%2Fsarahsurrain\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRn0u5wRdEza-43e4y1_xDAlxKg';return true;" class="">https://scholar.harvard.edu/<wbr class="">sarahsurrain</a><br class=""></div><div class=""><br class=""></div>
-- <br class="">
You received this message because you are subscribed to the Google Groups "chibolts" group.<br class="">
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="95h8ZK__AwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" class="">chib...@<wbr class="">googlegroups.com</a>.<br class="">
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/11b1fe6c-0bf5-421f-98b1-2e76aeaa71bd%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/chibolts/11b1fe6c-0bf5-421f-98b1-2e76aeaa71bd%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/chibolts/11b1fe6c-0bf5-421f-98b1-2e76aeaa71bd%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" class="">https://groups.google.com/d/<wbr class="">msgid/chibolts/11b1fe6c-0bf5-<wbr class="">421f-98b1-2e76aeaa71bd%<wbr class="">40googlegroups.com</a>.<br class="">
</div></blockquote></div><br class=""></div></div></blockquote></div><div class=""><br class="webkit-block-placeholder"></div>
-- <br class="">
You received this message because you are subscribed to the Google Groups "chibolts" group.<br class="">
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com" class="">chibolts+unsubscribe@googlegroups.com</a>.<br class="">
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/0bbdad80-63d5-43dd-9c4e-ec7560b1fdb6%40googlegroups.com?utm_medium=email&utm_source=footer" class="">https://groups.google.com/d/msgid/chibolts/0bbdad80-63d5-43dd-9c4e-ec7560b1fdb6%40googlegroups.com</a>.<br class="">
</div></blockquote></div><br class=""></div></body></html>
<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 view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/A7885AA1-44D4-437E-93C6-0FFC98CFFB3E%40andrew.cmu.edu?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/A7885AA1-44D4-437E-93C6-0FFC98CFFB3E%40andrew.cmu.edu</a>.<br />