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
Last updated
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
Last updated
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:
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 the Select 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, select Exclude participant names from output
option.
Under the Include time column for
section, check the boxes for Begin Time
and End 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 short awk
script that will turn the exported file you just obtained into a sparse code csv file that we have been using.
The script can be used as:
The result should be identical to the original chat file.