clancomments

How to run the clancomments script

clancomments script

  1. Check that clancomments is on your computer. It should be in Desktop/GitHub/SeedlingsBabylab.

    i. If clancomments is not there, you can download it from Github here.

  2. Open Terminal and change the directory to where the script is.

    cd /Users/bergelsonlab/Desktop/GitHub/SeedlingsBabylab/clancomments
  3. The clancomments script takes two arguments:

    python clancomments.py [file directory] [outout.csv]
  • file directory: the folder in which your cha file lives

    • NOTE: clancomments runs on a directory (not a single file), so you need to specify a directory that contains only one .cha. You may need to copy and paste the .cha file you're working on elsewhere.

  • output.csv: this is what the script will output. Name it according to the cha file, and add "comments." Ex: 01_06_coderSD_comments.csv

When you're ready, the script should look something like this:

python clancomments.py / Volumes/seedlings/Subject_Files/01_01-01-2015/01_06/Home_Vist/Coding/Audio_Annotation 01_06_comments.csv
  1. This will output a .csv that lists all of the comments in the CLAN file.

Last updated