INNER CODE UNIT · Python
__init__
shibing624/pytextclassifier · pytextclassifier/bert_classfication_utils.py:201
def __init__(
self, guid, text_a, text_b=None, label=None
):
"""
Constructs a InputExample.
Args:
guid: Unique id for the example.
text_a: string. The untokenized text of the first sequence. For single
sequence tasks, only this sequence must be specified.
text_b: (Optional) string. The untokenized text of the second sequence.
Only must be specified for sequence pair tasks.
label: (Optional) string. The label of the example. This should be
specified for train and dev examples, but not for test examples.
"""
self.guid = guid
self.text_a = text_a