# NOT RUN {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Get all transcripts whose names start with "BR"
transcripts <- getMatchingTranscriptIds(labbcat.url, "id MATCHES 'BR.+'")
## Get the first twenty transcripts in the "QB" corpus
transcripts <- getMatchingTranscriptIds(
labbcat.url, "my('corpus').label = 'QB'", 20, 0)
## Get the second transcript that has "QB247_Jacqui" as a speaker
transcripts <- getMatchingTranscriptIds(
labbcat.url, "'QB247_Jacqui' IN labels('participant')", 1, 1)
## Get all transcripts whose names start with "BR" and have "QB247_Jacqui" as a speaker,
## in word-count order
transcripts <- getMatchingTranscriptIds(
labbcat.url, "my('corpus').label = 'QB' AND 'QB247_Jacqui' IN labels('participant')", 1, 1,
"my('transcript_word_count').label ASC")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab