CLAN tools: selecting all files recursively / selecting utterances by child age

Brian MacWhinney macw at cmu.edu
Thu Nov 16 22:15:21 UTC 2006


Steven,
    Yes,  you just add the +re switch to run the command recursively  
down the subdirectories.
For matching ages, page 88 of the manual gives an example, but you  
will need to be careful with
your wild cards.

--Brian MacWhinney

On Nov 16, 2006, at 4:51 PM, Steven Bethard wrote:

> Is there any way to select all files recursively in a directory?   
> Say I have a directory structure like::
>
>     childes/
>       Garvey/
>         amyann.cha
>         amywes.cha
>         ...
>       Gleason/
>         Dinner/
>           andy.cha
>           bobby.cha
>           ...
>         ...
>
> If I want to search through all these files, how would I issue the  
> command?  I know I can do things like ``freq +s"before" *.cha`` if  
> I'm in, say, the childes/Garvey directory, but I can't figure out  
> how to select multiple files from multiple directories.
>
> On a related note, is there a way to select utterances by child  
> age? Say I'm searching through these files for utterances, but I'm  
> only interested in utterances from children that are 4 years old.   
> I can see that this information is stored in the @ID field of  
> the .CHA files (and so I could do this manually for each utterance)  
> but I couldn't figure out how to get the CLAN tools to match  
> speakers with their ages for me.
>
> Thanks,
>
> Steven Bethard
> Department of Computer Science
> University of Colorado at Boulder
>
>
>



More information about the Chibolts mailing list