Learn R Programming

RBERT (version 0.1.11)

InputExample: 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

Run this code
# NOT RUN {
input_ex <- InputExample(guid = 0, text_a = "Some text to classify.")
# }

Run the code above in your browser using DataLab