File Conversions
Instructions for converting between Clan (.cha), Elan (.eaf), .its and Datavyu (.opf) files. All the code on this page is in Fas-Phyc-PEB-Lab/Seedlings/Scripts_and_Apps/Github/seedlings/conversions
Converting an existing cha file to eaf.
Use the cha2eaf.py
script to convert an existing cha file to eaf. If the output option (-o
) is not specified, the script will create a new eaf with the input file name as default, in the current directory. The script can be used as:
Exporting a csv file from ELAN.
Below are the steps to export a csv file from ELAN that will be in the style of sparse code csv files. If the options section gets confusing, just follow along with the attached images.
Click file in the upper left corner.
Select
Export as
from the dropdown menu.Select
Tab-delimited text
from the dropdown menu.Check/Uncheck the following options (All of these are also shown in the picture, in case this is hard to follow):
Select (if not already selected)
By Tier Names
from theSelect tiers
section at the top. You should see a list of the usual chat file tiers (CXF
,NOF
,CHF
, etc.).Select
Show only root tiers
below the tier names window. This will hide away all the dependent tiers (such as%xdb@OLN
)Uncheck the default and block tiers (if these don't exist in your file, that is fine). The main point is that we are making sure that we are only taking tiers that have 3 letter names.
Under the
Output options
section, selectExclude participant names from output
option.Under the
Include time column for
section, check the boxes forBegin Time
andEnd Time
.Under the
Include time format
section, check the box for msec option (which stands for milliseconds).
Click
OK
to export :) . You will get a text file of tab separated values.The resulting file is still not a csv (comma separated values) file. Run the script
awker.sh
as./awker.sh < newly_exported_tab_separated_file.txt
. This is a shortawk
script that will turn the exported file you just obtained into a sparse code csv file that we have been using. PreviousAudio Processing
Converting an eaf (ELAN) file to a cha (CLAN) file.
The script can be used as:
The result should be identical to the original chat file.
Last updated