50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


RBERT (version 0.1.11)

.choose_BERT_dir: Choose a directory for BERT checkpoints

Description

If dir is not NULL, this function simply returns dir. Otherwise it checks the `RBERT.dir` param, and then uses user_cache_dir to choose a directory if necessary.

Usage

.choose_BERT_dir(dir)

Arguments

dir

Character vector. Destination directory for checkpoints. Leave NULL to allow RBERT to automatically choose a directory. The path is determined from the dir parameter if supplied, followed by the `RBERT.dir` option (set using set_BERT_dir), followed by an "RBERT" folder in the user cache directory (determined using user_cache_dir). If you provide a dir, the `RBERT.dir` option will be updated to that location. Note that the checkpoint will create a subdirectory inside this dir.

Value

A character vector indicating a directory in which BERT checkpoints are stored.