MCPcopy Create free account
hub / github.com/CLUEbenchmark/CLUE / InputExample

Class InputExample

baselines/models/bert/run_ner.py:126–141  ·  view source on GitHub ↗

A single training/test example for simple sequence classification.

Source from the content-addressed store, hash-verified

124
125
126class InputExample(object):
127 """A single training/test example for simple sequence classification."""
128
129 def __init__(self, guid, text, label=None):
130 """Constructs a InputExample.
131
132 Args:
133 guid: Unique id for the example.
134 text_a: string. The untokenized text of the first sequence. For single
135 sequence tasks, only this sequence must be specified.
136 label: (Optional) string. The label of the example. This should be
137 specified for train and dev examples, but not for test examples.
138 """
139 self.guid = guid
140 self.text = text
141 self.label = label
142
143
144class InputFeatures(object):

Callers 3

_create_exampleMethod · 0.70
_create_exampleMethod · 0.70
_create_exampleMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected