Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. For single sequence tasks, only this sequence must be specified. text_b: (Optional) string. The untokenized text of the second sequence.
(self, guid, text_a, text_b=None, label=None)
| 134 | """A single training/test example for simple sequence classification.""" |
| 135 | |
| 136 | def __init__(self, guid, text_a, text_b=None, label=None): |
| 137 | """Constructs a InputExample. |
| 138 | |
| 139 | Args: |
| 140 | guid: Unique id for the example. |
| 141 | text_a: string. The untokenized text of the first sequence. For single |
| 142 | sequence tasks, only this sequence must be specified. |
| 143 | text_b: (Optional) string. The untokenized text of the second sequence. |
| 144 | Only must be specified for sequence pair tasks. |
| 145 | label: (Optional) string. The label of the example. This should be |
| 146 | specified for train and dev examples, but not for test examples. |
| 147 | """ |
| 148 | self.guid = guid |
| 149 | self.text_a = text_a |
| 150 | self.text_b = text_b |
| 151 | self.label = label |
| 152 | |
| 153 | |
| 154 | class InputFeatures(object): |
nothing calls this directly
no outgoing calls
no test coverage detected