This function generates a transcript query expression fragment which can be passed as the transcript.expression parameter of getMatches, (or the expression parameter of getMatchingTranscriptIds) in order to identify transcripts using a list of transcript types.
expressionFromTranscriptTypes(transcript.types, not = FALSE)
A transcript query expression which can be passed as the transcript.expression parameter of getMatches or the expression parameter of getMatchingTranscriptIds
A list of transcript types.
Whether to match the given IDs (FALSE), or everything *except* the given IDs.
expressionFromAttributeValue
expressionFromAttributeValues
expressionFromIds
getMatches
if (FALSE) {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Perform a search of interviews or monologues
transcript.types <- c("interview","monologue")
results <- getMatches(labbcat.url, list(segment="I"),
transcript.expression = expressionFromTranscriptTypes(transcript.types))
## Perform a search of all transcripts that aren't word-lists.
results <- getMatches(labbcat.url, list(segment="I"),
transcript.expression = expressionFromTranscriptTypes("wordlist", NOT=true))
}
Run the code above in your browser using DataLab