View source: R/run_classifier.R
InputExample | R Documentation |
InputExample
An input example is a single training/test example for simple sequence classification.
InputExample(guid, text_a, text_b = NULL, label = NULL)
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. |
An object of class InputExample
.
## Not run: input_ex <- InputExample(guid = 0, text_a = "Some text to classify.") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.