Multiple File Operations

How to select multiple files

In the dialog window below (which pops up as the first dialog for most of the multiple file operation) do one of the following:

Figure 4.103. Multiple file selection dialog

Multiple file selection dialog


  • Select an existing domain from the list and click Load. (Click Delete if you want to delete the domain.)

  • Create a new domain:

    1. Click New Domain...

    2. Click in the new dialog on the Look in pull down box and browse to the directory that contains the annotation files.

    3. Double-click an annotation file (*.eaf) to select it. It now appears in the rightmost box. Alternatively, you can click on the annotation file name and click the >> button.

      Repeat this for every annotation file you want to include.

      It is also possible to select a complete directory. All .eaf files in a selected directory will be included.

    4. Click OK to continue the exporting process; otherwise click Cancel to exit the dialog window without exporting.

    5. If you clicked OK you can save this domain: enter a name and click OK. If you do not want to save the domain click Cancel.

  • Create a new domain from an IMDI search:

    1. Click New Domain from IMDI Search...

    2. Browse to and select an IMDI file that has been exported from a metadata search in the standalone IMDI Browser.

    3. Click Open.

    4. You can save this domain: enter a name and click OK. If you do not want to save the domain click Cancel.

Multiple file export options

ELAN offers the possibility to export multiple annotation files as one file. To do so click on File > Export Multiple Files As... and one of the options.

Tab-delimited Text

To export multiple files as Tab-delimited Text, click File > Export Multiple Files As... > Tab-delimited Text....

  1. A multiple file selection dialog appears(see the section called “How to select multiple files” . Select or create a domain and click on ok to continue.

  2. Then in the next dialog that appears, select tiers and options as you would do when exporting a single Tab-delimited Text file (see the section called “Tab-delimited text file”). A column containing the file names is added to the export file.

Note

The following options cannot be checked:

  • Restrict to selected time interval: the selected time interval does not necessarily correspond to an interval in the files selected for export.

  • Add master media time offset to annotation times: the master media (time offset) of the file currently opened in ELAN does not necessarily correspond to the media (time offset) of the files selected for export.

List of annotations

To export multiple files as List of annotations, click File > Export Multiple Files As... > List of annotations....

  1. A multiple file selection dialog appears(see the section called “How to select multiple files” . Select or create a domain and click on ok to continue.

  2. Then in the next dialog that appears, select the tiers (see the section called “How to select tiers” ) from which the annotations are to be exported. Note that the annotations are not separated into words. Check Count occurrences if you want the list to include the number of occurrences for each annotation.

List of Words

To export multiple files as Tab-delimited Text, click File > Export Multiple Files As... > List of Words....

  1. A multiple file selection dialog appears(see the section called “How to select multiple files” . Select or create a domain and click on ok to continue.

  2. Then in the next dialog that appears, select the tiers and other options as you would do when exporting a single Tab-delimited Text file (see the section called “Alphabetical list of words”).

Export tiers as EAF

There could be situations in which you want to discard or select tiers from multiple .eaf files, for instance if you want to present a third party with a limited number of tiers. To do so, select File > Export Multiple Files As... >Selected Tiers as EAF.... In the first dialog(see the section called “How to select multiple files”) you can select the files from which you want to export a selection of tiers.

Once you have selected your files, Export Tiers from Multiple Files dialog appears.

Figure 4.104. Exporting by selecting tiers

Exporting by selecting tiers


To export, do the following:

  1. Select tiers (see the section called “How to select tiers”) for the export.

  2. In the Output Options section you can specify...

    1. whether to Export parent tiers of the selected dependent tiers automatically or to Only export dependent tiers if their parent tiers are selected.

    2. whether to Save files with original names of to Make use of suffixes. In case of the latter, you can specify whether to save the files with their original name followed by a suffix or to save the files with a new base name and followed by a suffix number.

    3. whether the files should be saved in the original directory, in a (possibly new) directory which is local for each files, or together in the same directory.

    4. whether of not ELAN should export files that result in having no tiers.

  3. Finally, click Export to export the .eaf files containing only the selected tiers.

Annotation Overlaps Information

This function is available via menu File->Export Multiple Files As-> Annotation Overlaps Information....

This function allows the user to select one “reference” tier and multiple other tiers that will be compared (sequentially) with the reference tier. The comparison is done on the level of the annotations.  

The following information will be present in the resulting tab-delimited text file:

  1. The Header line with column names

    Column 1- 4:

    Begin timeEnd time Duration Reference Tier Name

    These columns will contain information for all annotations of the reference tier. The annotation values are in the column with the tier name as the header, the time info in the first 3 columns.

    Next for each “comparing” tier there will be 11 columns, the header of which consists of the tier name and a suffix and the column contains the following information:

    1Name-ov0 or 1,  whether there is an overlapping annotation or not  (0=no, 1=yes)
    2Name-same0 or 1, whether the overlapping annotation has the same value. If there are more than one overlapping annotations the value is 0 (0=no, 1=yes)
    3Name-ov-durThe duration of the overlap,  the total overlap duration in case of more than one overlapping annotation
    4Name-no-annThe number of overlapping annotations
    5Name-valueThe value of the overlapping annotation, concatenated, comma separated, in case of multiple overlaps
    6Name-bt-to-bt-AfterThe amount of time from the beginning of the reference annotation to the beginning of the first non
    7Name-et-to-bt-AfterThe amount of time from the end of the reference annotation to the beginning of  the first non overlapping annotation
    8Name-et-to-et-AfterThe amount of time from the end of the reference annotation to the end of  the first non overlapping annotation
    9Name-bt-After The begin time of the annotation on the comparing tier after the reference annotation
    10Name-et-After The end time of the annotation on the comparing tier after the reference annotation
    11Name-value-AfterThe value of the first annotation on the comparing tier after the reference annotation
  2. The content per file

    After the header, for each file there will be the following information/data:

    • one line containing the file name

    • a number of rows equal to the number of annotations of the reference tier

    • each cell filled with the information corresponding to the header description (above) 

    All time values are in milliseconds.

Editing multiple files

Normally ELAN allows to edit only a single file at a time. There are situations in which it is convenient to edit multiple files at once. The menu item File > Multiple File Processing gives a number of options to do just this. When selecting either of them, you are warned that you should have copies of the files you are going to work on in case you want to restore the files (there is no Undo for multiple file edits).

Create multiple transcriptions

When you choose this option Create Transcription Files for Multiple Media Files..., you see the following dialog.

Figure 4.105. Create transcription files for multiple media files Dialog

Create transcription files for multiple media files Dialog


Options :

  • Select folder containing media files : click Browse button to select the folder containing media files.

  • check this option process sub-folders as well, recursive to include all the media files in the recursive sub-folders of the selected folder.

  • To apply a template (only if required) for the new transcription files, check this option Use a template for the new transcription files and click on Browse button to select the template file.

  • Next option allows you to select a location for the new transcription files.

    • To put the transcription files in the same folder as the media files, select in the same folder as the media files.

    • To put them in a different folder, select in other folder and click the Browse button to select the destination folder.

  • You could always have more than one media file in a transcription. In order to group the media files for a transcription, check this option Combine videos based on. In order to define how the media should be grouped, select one of the following:

    • different suffix : to combine the media file with a different suffix and has the same file name.

    • different prefix : to combine the media file different preffix value and has the same file name.

    To specify a separator in the filename to identify the suffix or preffix, check this option Specify custom affix separator character ('-' and '_' are built in).

Click on Start to create the transcriptions based on the options set.

Edit Multiple Files

The option Edit Multiple Files... shows, after clicking Yes in the warning dialog mentioned above, the Multi File Editor. The first thing to do here is to load a domain by clicking Load domain. Loading a domain is the same as for the Scrub Transcriptions... option. To be able to load a domain you must of course have created one beforehand(see the section called “How to select multiple files”). After loading a domain, the data is shown in the table. In this table you can edit tiers on the Tiers tab and linguistic types on the Linguistic Types tab.

To edit a name, annotator or participant of a tier, double click the corresponding table cell or select it and start typing. To change the linguistic type of a tier, select one from the drop down menu. You can add a tier by clicking Add tier and remove one by clicking Remove tier.

Note

If there are hierarchy inconsistencies (e.g. if a tier in one file does have a parent while a tier with the same name in another file does not) removing tiers is not possible. The button Remove tier is therefore greyed out.

Figure 4.106. Multiple File Editor

Multiple File Editor


On the Linguistic Types tab, the name of a linguistic type can be changed by double clicking the corresponding table cell in the Type Name column.

Changes made in the Tiers and Types tabs are applied to all the files in the domain after clicking the Save changes to domain files button.

Scrub Transcriptions

When you choose Scrub Transcriptions..., you first need to specify a new domain or select an existing domain. This option helps you to "clean" the annotation files (*.eaf) of possible tabs or whitespace characters which are often overlooked by the user but are still saved in the file. To select, create or delete a domain see the section called “How to select multiple files”.

In the next dialog, you can specify what characters to delete, new line characters, tab characters and/or whitespace characters, and in what position these characters have to be. Click Start to start the scrubbing process. The progress of the scrubbing is shown in the progress bar.

Figure 4.107. Transcription Scrubber

Transcription Scrubber


Annotations from overlaps

The option Annotations From Overlaps... for multiple files is the same function as annotations from overlaps in the current open file (see the section called “Creating annotations from overlaps” ), but applied to a selection of files. The first step allows to select a custom set of files in a file browser or to load a set of files that have been stored as a domain. For loading or creating new domain see the section called “How to select multiple files” The list of tiers is the sum of all tier names encountered in the selected files. The options in the next steps are the same, clicking the Finish button in the last step the new tier is created and populated with annotations in all files of the domain.

Annotations from subtraction

The option Annotations From Subtraction... for multiple files is the same function as annotations from subtraction in the current open file (see the section called “Create Annotation By subtraction” ), but applied to a selection of files. The first step allows to select a custom set of files in a file browser or to load a set of files that have been stored as a domain. For loading or creating new domain see the section called “How to select multiple files” The list of tiers is the sum of all tier names encountered in the selected files. The options in the next steps are the same, clicking the Finish button in the last step the new tier is created and populated with annotations in all files of the domain.

Annotation statistics

This function Statistics for Multiple Files is similar to annotation statistics for the current file (see the section called “Annotations Statistics”). The main difference after selecting the files in the domain is that it is possible to select which tiers to include in the calculations. The tables in the tabs do not have the column showing the total annotation duration as a percentage of the media duration but most do have a column for the number of files a certain value (tier or type name etc.) has been encountered in. After changes in the selection of files or in the selection of tiers the Update Statistics button needs to be clicked before the new calculations are started.