Learn R Programming

nzilbb.labbcat (version 1.0-1)

getDictionaryEntries: Lookup entries in a dictionary.

Description

Lookup entries in a dictionary.

Usage

getDictionaryEntries(labbcat.url, manager.id, dictionary.id, keys)

Arguments

labbcat.url

URL to the LaBB-CAT instance

manager.id

The layer manager ID of the dictionary, as returned by getDictionaries

dictionary.id

The ID of the dictionary, as returned by getDictionaries

keys

A list of entries to look up

Value

A data frame with the keys and their dictionary entries.

See Also

getDictionaries

Examples

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

keys <- c("the", "quick", "brown", "fox")

## get the pronunciations according to CELEX
entries <- getDictionaryEntries(labbcat.url, "CELEX-EN", "Phonology (wordform)", keys)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab