View source: R/countMatchingAnnotations.R
countMatchingAnnotations | R Documentation |
Returns the number of annotations in the corpus that match the given expression.
countMatchingAnnotations(labbcat.url, expression)
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.
|
The number of annotations that match the expression.
getMatchingAnnotations
## Not run:
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## count the number of topic tags that include the word 'quake'
countMatchingAnnotations(labbcat.url, "layer.id == 'topic' && /.*quake.*/.test(label)")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.