Extracting individual participants' ages from a corpus

22 views
Skip to first unread message

Ludovica Serratrice

unread,
Nov 15, 2024, 6:24:46 AM11/15/24
to chibolts
Dear colleagues,

I would like to extract the @ID header including the target child's age for each of the files in  the subfolder TD-frog in the Conti4 corpus. It's been a while since I used CLAN and my attempts have so far failed. Any suggestions gratefully appreciated. 

Many thanks in advance,

Ludovica Serratrice

Leonid Spektor

unread,
Nov 15, 2024, 7:43:27 AM11/15/24
to chib...@googlegroups.com
Hi,

As I understand it you want a list of all Target_Child @ID headers. First set CLAN working directory separately to SLI-frog or TD-frog, the try commands:

kwal -t* +t@ID +s"*|Target_Child|*" *.cha
kwal -t* +t@ID +s"*|Target_Child|*" *.cha +d

You can add +f option to above commands to save output to a file.


Leonid.

--
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+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chibolts/34b03c05-9f27-4943-856d-bff72eac9054n%40googlegroups.com.

Ludovica Serratrice

unread,
Nov 15, 2024, 8:12:06 AM11/15/24
to chib...@googlegroups.com
Brilliant! Thank you, Leonid.

I was almost right, but did not include the | | in the +s switch! Thank you so much.

Best wishes,

Ludovica





Professor of Multilingualism
Research Division Lead
University of Reading
School of Psychology and Clinical Language Sciences
Harry Pitt Building Reading RG6 7BE

My name and surname are pronounced like this





Book time to meet with me

From: chib...@googlegroups.com <chib...@googlegroups.com> on behalf of Leonid Spektor <spe...@andrew.cmu.edu>
Sent: 15 November 2024 12:43
To: chib...@googlegroups.com <chib...@googlegroups.com>
Subject: Re: Extracting individual participants' ages from a corpus
 
You don't often get email from spe...@andrew.cmu.edu. Learn why this is important
You received this message because you are subscribed to a topic in the Google Groups "chibolts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chibolts/XJ_DoX5dKFI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chibolts+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chibolts/8C1B5EDC-990F-4C2E-803C-26009807069B%40andrew.cmu.edu.
Reply all
Reply to author
Forward
0 new messages