dot-process_BERT_checkpoint: Unzip and check a BERT checkpoint zip

.process_BERT_checkpointR Documentation

Unzip and check a BERT checkpoint zip

Description

Unzip and check a BERT checkpoint zip

Usage

.process_BERT_checkpoint(dir, checkpoint_archive_path, ckpt_dir, archive_type)

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.

archive_type

How is the checkpoint archived? We currently support "zip" and "tar-gzip". Leave NULL to infer from the url.

Value

TRUE invisibly.


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