transcripts_update_normalization: Normalize transcriptions
Description
Normalizes the contents of transcriptions in a corpus object using a normalization matrix.
Function returns a corpus object with normalized transcription and updates the original corpus object passed as argument to x.
Usage
transcripts_update_normalization(
x,
path_replacementMatrixCSV = "",
transcriptNames = NULL,
forceUpdate = FALSE
)
Arguments
- x
Corpus object.
- path_replacementMatrixCSV
Character string; path to replacement matrix in CSV format. If empty, the default replacement matrix that comes with the package will be used.
- transcriptNames
Vector of character strings; Names of the transcripts for which you want to search media files; leave empty if you want to search media for all transcripts in the corpus object.
- forceUpdate
Logical; If TRUE
transcripts will be normalized in any case, if FALSE
transcripts will be only normalized if there was a modification to the transcript since the last normalization.
Examples
Run this codelibrary(act)
examplecorpus <- act::transcripts_update_normalization(x=examplecorpus)
Run the code above in your browser using DataLab