get_dictionary | R Documentation |
Creates a dictionary object from a dictionary located in the CLESSN data lake (hublot).
get_dictionary(topic, lang = c("en", "fr"), credentials)
topic |
The name or topic of the dictionary to retrieve from hublot. |
lang |
The language of the dictionary. "en" is for English, "fr" is for French. Both are included by default. |
credentials |
The user's personal credentials from hublot. |
A quanteda type dictionary object.
CLESSN
## Not run:
# get credentials from hublot
credentials <- hublot::get_credentials(
Sys.getenv("HUB3_URL"),
Sys.getenv("HUB3_USERNAME"),
Sys.getenv("HUB3_PASSWORD")
)
# retrieve the COVID dictionary in both EN and FR
clessnverse::get_dictionary("covid", c("en", "fr"), credentials)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.