InputExample: Construct objects of class 'InputExample'

View source: R/run_classifier.R

InputExampleR Documentation

Construct objects of class InputExample

Description

An input example is a single training/test example for simple sequence classification.

Usage

InputExample(guid, text_a, text_b = NULL, label = NULL)

Arguments

guid

Unique id for the example (character or integer?).

text_a

Character; the untokenized text of the first sequence. For single sequence tasks, only this sequence must be specified.

text_b

(Optional) Character; the untokenized text of the second sequence. Only must be specified for sequence pair tasks.

label

(Optional) Character; the label of the example. This should be specified for train and dev examples, but not for test examples.

Value

An object of class InputExample.

Examples

## Not run: 
input_ex <- InputExample(guid = 0, text_a = "Some text to classify.")

## End(Not run)

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