Learn R Programming

RBERT (version 0.1.11)

.convert_examples_to_features_EF: Convert InputExample_EFs to InputFeatures_EF

Description

Converts a set of InputExample_EFs to a list of InputFeatures_EF. Very similar to convert_examples_to_features from run_classifier.R. (RBERT issue #28.)

Usage

.convert_examples_to_features_EF(examples, seq_length, tokenizer)

Arguments

examples

List of InputExample_EFs to convert.

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).

Value

A list of InputFeatures.