View source: R/getMatchingAnnotationData.R
getMatchingAnnotationData | R Documentation |
In some annotation layers, the annotations have not only a textual label, but also binary data associated with it; e.g. an image or a data file. In these cases, the 'type' of the layer is a MIME type, e.g. 'image/png'. This function gets annotations that match the given expression on a MIME-typed layer, and retrieves the binary data as files, whose names are returned by the function.
getMatchingAnnotationData(labbcat.url, expression, path = "")
labbcat.url |
URL to the LaBB-CAT instance |
expression |
An expression that determines which annotations match. This must match by either id or layer.id. The expression language is currently not well defined, but is based on JavaScript syntax. e.g.
|
path |
Optional path to directory where the files should be saved. |
The names of the files.
getMatchingAnnotations
getFragmentAnnotationData
## Not run:
## Get mediapipe image annotations for the eleventh second of a transcript
expression = paste(sep="&&",
"layer.id == 'mediapipe'",
"graph.id == 'AP511_MikeThorpe.eaf'",
"start.offset >= 10",
"end.offset < 11")
png.files <- getMatchingAnnotationData(labbcat.url, expression, path="png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.