getFragmentAnnotations.Rd
This function gets annotations between given start/end times on given layers. If more than one annotation matches, labels are concatentated together.
getFragmentAnnotations(
labbcat.url,
transcript.id,
participant.id,
start,
end,
layer.ids,
sep = " ",
partial.containment = FALSE,
no.progress = FALSE
)
URL to the LaBB-CAT instance
The transcript ID (transcript name) of the sound recording, or a vector of transcript IDs.
The participant ID of the annotations, or a vector of participant IDs.
The start time in seconds, or a vector of start times.
The end time in seconds, or a vector of end times.
A vector of layer IDs.
The separator to use when concatenating labels when multiple annotations are in the given interval.
Whether to include annotations that are only partially contained in the given interval.
TRUE to supress visual progress bar. Otherwise, progress bar will be shown when interactive().
A data frame with three columns for each layer in layer.ids:
The annotation labels concatenated together
The start time of the first annotation
The end time of the last annotation
if (FALSE) {
## Get some span-layer intervales
topics <- getMatches(labbcat.url, list(topic = ".*quake.*"))
## Get concantenated word tokens for each topic annotation
topic.tokens <- getFragmentAnnotations(
labbcat.url, topics$Transcript, topics$Participant, topics$topic.start, topics$topic.end,
c("word"))
}