if (FALSE) {
## Get all transcripts whose names start with "BR"
transcripts <- getMatchingTranscriptIds(labbcat.url, "/^BR.+/.test(id)")
## Get the first twenty transcripts in the "QB" corpus
transcripts <- getMatchingTranscriptIds(
labbcat.url, "first('corpus').label = 'QB'", 20, 0)
## Get the second transcript that has "QB247_Jacqui" as a speaker
transcripts <- getMatchingTranscriptIds(
labbcat.url, "labels('participant').includes('QB247_Jacqui')", 1, 1)
## Get all transcripts in the QB corpus whose names start with "BR"
## in word-count order
transcripts <- getMatchingTranscriptIds(
labbcat.url, "first('corpus').label = 'QB' && /^BR.+/.test(id)",
order="first('transcript_word_count').label ASC")
}
Run the code above in your browser using DataLab