View source: R/countAnnotations.R
countAnnotations | R Documentation |
Returns the number of annotations on the given layer of the given transcript.
countAnnotations(labbcat.url, id, layer.id, max.ordinal = NULL)
labbcat.url |
URL to the LaBB-CAT instance |
id |
A transcript ID (i.e. transcript name) |
layer.id |
A layer ID |
max.ordinal |
The maximum ordinal for the counted annotations. e.g. a max.ordinal of 1 will ensure that only the first annotation for each parent is returned. If max.ordinal is null, then all annotations are counted, regardless of their ordinal. |
The number of annotations on that layer
getTranscriptIds
getTranscriptIdsInCorpus
getTranscriptIdsWithParticipant
## Not run:
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Count the number of words in UC427_ViktoriaPapp_A_ENG.eaf
token.count <- countAnnotations(labbcat.url, "UC427_ViktoriaPapp_A_ENG.eaf", "orthography")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.