Learn R Programming

RBERT (version 0.1.11)

bert_config_from_json_file: 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

Run this code
# 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)
# }

Run the code above in your browser using DataLab