powered by
InputExample
An input example is a single training/test example for simple sequence classification.
InputExample(guid, text_a, text_b = NULL, label = NULL)
Unique id for the example (character or integer?).
Character; the untokenized text of the first sequence. For single sequence tasks, only this sequence must be specified.
(Optional) Character; the untokenized text of the second sequence. Only must be specified for sequence pair tasks.
(Optional) Character; the label of the example. This should be specified for train and dev examples, but not for test examples.
An object of class InputExample.
# NOT RUN { input_ex <- InputExample(guid = 0, text_a = "Some text to classify.") # }
Run the code above in your browser using DataLab