MCPcopy Create free account
hub / github.com/google-research/language / InputExample

Class InputExample

language/conpono/evals/run_concat_classifier.py:140–158  ·  view source on GitHub ↗

A single training/test example for simple sequence classification.

Source from the content-addressed store, hash-verified

138
139
140class InputExample:
141 """A single training/test example for simple sequence classification."""
142
143 def __init__(self, guid, text_a, text_b=None, label=None):
144 """Constructs a InputExample.
145
146 Args:
147 guid: Unique id for the example.
148 text_a: string. The untokenized text of the first sequence. For single
149 sequence tasks, only this sequence must be specified.
150 text_b: (Optional) string. The untokenized text of the second sequence.
151 Only must be specified for sequence pair tasks.
152 label: (Optional) string. The label of the example. This should be
153 specified for train and dev examples, but not for test examples.
154 """
155 self.guid = guid
156 self.text_a = text_a
157 self.text_b = text_b
158 self.label = label
159
160
161class PaddingInputExample:

Callers 8

get_train_examplesMethod · 0.70
get_dev_examplesMethod · 0.70
_create_examplesMethod · 0.70
_create_examplesMethod · 0.70
_create_examplesMethod · 0.70
_create_examplesMethod · 0.70
_create_examplesMethod · 0.70
_create_examplesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…