dot-convert_examples_to_features_EF: Convert 'InputExample_EF's to 'InputFeatures_EF'

.convert_examples_to_features_EFR Documentation

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.


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