Learn R Programming

nzilbb.labbcat (version 0.6-3)

getAnchors: Gets the given anchors in the given transcript.

Description

Lists the given anchors in the given transcript.

Usage

getAnchors(labbcat.url, id, anchorId)

Arguments

labbcat.url

URL to the LaBB-CAT instance

id

A transcript ID (i.e. transcript name)

anchorId

A vector of anchor IDs (or a string representing one anchor ID)

Value

A named list of anchors, with members:

  • id The annotation's unique ID,

  • offset The offset from the beginning (in seconds if it's a transcript of a recording, or in characters if it's a text document)

  • confidence A rating from 0-100 of the confidence of the offset, e.g. 10: default value, 50: force-aligned, 100: manually aligned

See Also

getAnnotations

Examples

Run this code
# NOT RUN {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"

## Get the first 20 orthography tokens in UC427_ViktoriaPapp_A_ENG.eaf
orthography <- getAnnotations(labbcat.url, "UC427_ViktoriaPapp_A_ENG.eaf", "orthography", 20, 0)

## Get the start anchors for the above tokens
word.starts <- getAnchors(labbcat.url, "UC427_ViktoriaPapp_A_ENG.eaf", orthography$startId)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab