This function generates a query expression fragment which can be passed as the transcript.expression or participant.expression parameter of getMatches, (or the expression parameter of getMatchingTranscriptIds or getMatchingParticipantIds) using a list of possible values for a given transcript attribute.
expressionFromAttributeValue(transcript.attribute, values, not = FALSE)
A transcript query expression which can be passed as the transcript.expression parameter of getMatches or the expression parameter of getMatchingTranscriptIds
The transcript attribute to filter by.
A list of possible values for transcript.attribute.
Whether to match the given IDs (FALSE), or everything *except* the given IDs.
The attribute defined by transcript.attribute is expected to have exactly one value. If it may have multiple values, use expressionFromAttributeValues instead.
expressionFromAttributeValues
expressionFromTranscriptTypes
expressionFromIds
getMatches
if (FALSE) {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Perform a search
languages <- c("en","en-NZ")
results <- getMatches(labbcat.url, list(segment="I"),
transcript.expression = expressionFromAttributeValue(
"transcript_language", languages))
}
Run the code above in your browser using DataLab