Counting frequency of codes per transcript
Leonid Spektor
spektor at andrew.cmu.edu
Mon Sep 9 13:29:02 UTC 2024
Hi Linda,
The command line you have in your example would count data associated with the code "[INS:PRO]". For example, if you have utterances:
*TEA: one <two three> [INS:PRO] four.
%xtyp: $INS:PRO
then output of your command would be:
1 two
1 three
I assume you have INS:PRO listed on %xtyp: dependent tier as $INS:PRO. If that is how you have it, then +s option should be +s$NS:PRO.
You can try other following +s options and to see which one gives you the output you want:
+s$*
+s$*:*
+s$*:%
+s$INS:*
+s$INS:%
+s$*:PRO
+s$%:PRO
If non of the above +s options work for you, then please give me an example of how you coded your data files.
Leonid.
> On Sep 9, 2024, at 05:49, Linda Andreev <linda_andreev at g.harvard.edu> wrote:
>
> Hello!
>
> I've been searching for a command that counts the occurrence of codes per transcript in a dataset. The codebook spans four categories (each category is a separate tier in CLAN), with each tier having its own set of codes and subcodes. Not finding such a command, I tried the following to count the occurrences of a single code in the dataset (INS:PRO is the code; TEA is the speaker; *2023* is in every transcript title in the folder): freq +t*TEA +s"<INS:PRO>" +t%xtyp *2023*
>
> However, the output shows 0 for every file even though each transcript was coded with INS:PRO many times. I also tried variations with the +f and +d commands to try to get a spreadsheet of the data without success.
>
> Could you recommend any revisions to the code or to the approach? Any guidance would be greatly appreciated!
>
> Cheers,
> Linda
>
> --
> You received this message because you are subscribed to the Google Groups "chibolts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+unsubscribe at googlegroups.com <mailto:chibolts+unsubscribe at googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/a3cb82ee-e8fa-471d-828c-319e92235b59n%40googlegroups.com <https://groups.google.com/d/msgid/chibolts/a3cb82ee-e8fa-471d-828c-319e92235b59n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "chibolts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/C856231B-142E-4E59-8BE0-59B9810A9C2E%40andrew.cmu.edu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/chibolts/attachments/20240909/617bb6dd/attachment.htm>
More information about the Chibolts
mailing list