A single training/test example for simple sequence classification.
| 124 | |
| 125 | |
| 126 | class 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 | |
| 144 | class InputFeatures(object): |
no outgoing calls
no test coverage detected