Learn R Programming

RBERT (version 0.1.11)

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

Run this code
# NOT RUN {
input_ex <- InputExample_EF(
  unique_id = 1,
  text_a = "I work at the bank."
)
# }

Run the code above in your browser using DataLab