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

Class InputExample

baselines/models/roberta/run_ner.py:120–135  ·  view source on GitHub ↗

A single training/test example for simple sequence classification.

Source from the content-addressed store, hash-verified

118
119
120class InputExample(object):
121 """A single training/test example for simple sequence classification."""
122
123 def __init__(self, guid, text, label=None):
124 """Constructs a InputExample.
125
126 Args:
127 guid: Unique id for the example.
128 text_a: string. The untokenized text of the first sequence. For single
129 sequence tasks, only this sequence must be specified.
130 label: (Optional) string. The label of the example. This should be
131 specified for train and dev examples, but not for test examples.
132 """
133 self.guid = guid
134 self.text = text
135 self.label = label
136
137
138class 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