View source: R/getTranscriptAttributes.R
getTranscriptAttributes | R Documentation |
Gets transcript attribute values for given transcript IDs.
getTranscriptAttributes(labbcat.url, transcript.ids, layer.ids)
labbcat.url |
URL to the LaBB-CAT instance |
transcript.ids |
A vector of transcript IDs |
layer.ids |
A vector of layer IDs corresponding to transcript attributes. In general, these are layers whose ID is prefixed 'transcript_', however formally it's any layer where layer$parentId == 'transcript' && layer$alignment == 0, which includes 'corpus' as well as transcript attribute layers. |
A data frame of attribute value labels.
## Not run:
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Get language, duration, and corpus for transcripts starting with 'BR'
attributes <- getTranscriptAttributes(labbcat.url,
getMatchingTranscriptIds(labbcat.url, "/'BR.+'/.test(id)"),
c('transcript_language', 'transcript_duration', 'corpus'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.