InputExample_EF: Construct objects of class 'InputExample_EF'

View source: R/extract_features.R

InputExample_EFR Documentation

Construct objects of class InputExample_EF

Description

An InputExample_EF is a single test example for feature extraction. Note that this class is similiar to the InputExample class used for simple sequence classification, but doesn't have a label property. The name of the id property is also annoyingly different; should eventually standardize better than the Python folks did. (RBERT issue #28.)

Usage

InputExample_EF(unique_id, text_a, text_b = NULL)

Arguments

unique_id

Integer or character; a unique id for this example.

text_a

Character; the untokenized text of the first sequence.

text_b

(Optional) Character; the untokenized text of the second sequence.

Value

An object of class InputExample_EF.

Examples

input_ex <- InputExample_EF(
  unique_id = 1,
  text_a = "I work at the bank."
)

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