import_rpraat {act}R Documentation

Import a single 'rPraat' TextGrid object


This function is to create compatibility with the rPraat package. It converts a 'rPraat' TextGrid object into an act transcript object.


import_rpraat(rPraatTextGrid, transcriptName = NULL)



List; rPraat TextGrid object.


Character string; name of the transcript.


Please note: - Time values of annotations in TextGrids may be below 0 seconds. Negative time values will be recognized corretly in the first place. When exporting transcript object to other formats like 'ELAN' .eaf, 'EXMARaLDA' .exb ect. annotations that are completely before 0 sec will be deleted, annotations that start before but end after 0 sec will be truncated. Please see also the function act::transcripts_cure_single. - TextGrids and contained tiers may start and end at different times. These times do not need to match each other. The act package does not support start and end times of TextGrids and tiers and will. The default start of a TextGrid will be 0 seconds or the lowest value in case that annotations start below 0 seconds.

Credits: Thanks to Tomáš Bořil, the author of the rPraat package, for commenting on the exchange functions.


Transcript object.

See Also

corpus_import, corpus_new, import, import_eaf, import_exb, import_textgrid

export_rpraat, import, import_textgrid, import_eaf



# Path to the .TextGrid file that you want to read
path <- system.file("extdata", "examplecorpus", "GAT", 
					"ARG_I_PAR_Beto.TextGrid", package="act")

# To import a .TextGrid file of your choice:
## Not run: 

## End(Not run)

# Make sure to have rPraat installed before you try the following
## Not run: 
	# Read TextGrid file with rPraat <-

	# Convert to an act transcript
	t <- act::import_rpraat(
	# Change the name and add it to the examplecorpus
	t@name <-"rpraat"
	newcorpus <- act::transcripts_add(examplecorpus, t)
	# Have a look
	# Alternatively, you can use the general import function
	t <- act::import(

## End(Not run)

[Package act version 1.1.9 Index]