dot-infer_checkpoint_archive_path: Infer the path to the archive for a BERT checkpoint

.infer_checkpoint_archive_pathR Documentation

Infer the path to the archive for a BERT checkpoint

Description

Infer the path to the archive for a BERT checkpoint

Usage

.infer_checkpoint_archive_path(url, dir)

Arguments

url

Character vector. An optional url from which to download a checkpoint. Overrides model parameter if not NULL.

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 file path, pointing to where the raw checkpoint archive should be saved.


jonathanbratt/RBERT documentation built on Jan. 26, 2023, 4:15 p.m.