file_based_convert_examples_to_features: Convert a set of 'InputExample's to a TFRecord file.

View source: R/run_classifier.R

file_based_convert_examples_to_featuresR Documentation

Convert a set of InputExamples to a TFRecord file.

Description

description

Usage

file_based_convert_examples_to_features(
  examples,
  label_list,
  max_seq_length,
  tokenizer,
  output_file
)

Arguments

examples

List of InputExamples to convert.

label_list

Character (or integer?); possible labels for examples.

max_seq_length

Integer; the maximum number of tokens that will be considered together.

tokenizer

A tokenizer object to use (e.g. object of class FullTokenizer).

output_file

Character; path to file to write to.

Value

return value


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