bert_config_from_json_file: Load BERT config object from json file

View source: R/modeling.R

bert_config_from_json_fileR Documentation

Load BERT config object from json file

Description

Given a path to a json config file, construct a BertConfig object with appropriate values.

Usage

bert_config_from_json_file(json_file)

Arguments

json_file

Character; the path to a json config file.

Value

An object of class BertConfig

Examples

## Not run: 
temp_dir <- tempdir()
json_file <- file.path(
  temp_dir,
  "BERT_checkpoints",
  "uncased_L-12_H-768_A-12",
  "bert_config.json"
)
bert_config_from_json_file(json_file)

## End(Not run)

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