INNER CODE UNIT · Python

__repr__

shibing624/pytextclassifier · pytextclassifier/bert_classfication_utils.py:222

    def __repr__(self):
        return str(
            {
                "guid": self.guid,
                "text_a": self.text_a,
                "text_b": self.text_b,
                "label": self.label,
            }
        )


class InputFeatures(object):
    """A single set of features of data."""

    def __init__(self, input_ids, input_mask, segment_ids, label_id):
        self.input_ids = input_ids
        self.input_mask = input_mask
        self.segment_ids = segment_ids

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…