A single training/test example for simple sequence classification.
| 118 | |
| 119 | |
| 120 | class 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 | |
| 138 | class InputFeatures(object): |
no outgoing calls
no test coverage detected