A single set of features of data.
| 391 | |
| 392 | # Convert functions |
| 393 | class InputFeatures(object): |
| 394 | """A single set of features of data.""" |
| 395 | |
| 396 | def __init__(self, |
| 397 | input_ids, |
| 398 | input_mask, |
| 399 | segment_ids, |
| 400 | label_id, |
| 401 | is_real_example=True): |
| 402 | self.input_ids = input_ids |
| 403 | self.input_mask = input_mask |
| 404 | self.segment_ids = segment_ids |
| 405 | self.label_id = label_id |
| 406 | self.is_real_example = is_real_example |
| 407 | |
| 408 | |
| 409 | def _truncate_seq_pair(tokens_a, tokens_b, max_length): |
no outgoing calls
no test coverage detected