(self, token_ids_0, token_ids_1=None)
return cls + token_ids_0 + sep + token_ids_1 + sep
Build model inputs from a sequence or a pair of sequence for sequence classification tasks
        by concatenating and adding special tokens.
        A BERT sequence has the following format:
            single sequence: [CLS] X [SEP]
            pair of sequences: [CLS] A [SEP] B [SEP]
Build model inputs from a sequence or a pair of sequence for sequence classification tasks
        by concatenating and adding special tokens.
        A BERT sequence has the following format:
            single sequence: [CLS] X [SEP]
            pair of sequences: [CLS] A [SEP] B [SEP]
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens . A BERT sequence has the following format : single sequence : [ CLS ] X [ SEP ] pair of sequences : [ CLS ] A [ SEP ] B [ SEP ]
def build_inputs_with_special_tokens(self, token_ids_0, token_ids_1=None):
        """
        Build model inputs from a sequence or a pair of sequence for sequence classification tasks
        by concatenating and adding special tokens.
        A BERT sequence has the following format:
            single sequence: [CLS] X [SEP]
            pair of sequences: [CLS] A [SEP] B [SEP]
        """
        if token_ids_1 is None:
            return [self.cls_token_id] + token_ids_0 + [self.sep_token_id]
        cls = [self.cls_token_id]
        sep = [self.sep_token_id]
        return cls + token_ids_0 + sep + token_ids_1 + sep
def build_inputs_with_special_tokens ( self , token_ids_0 , token_ids_1 = None ) : if token_ids_1 is None : return [ self . cls_token_id ] + token_ids_0 + [ self . sep_token_id ] cls = [ self . cls_token_id ] sep = [ self . sep_token_id ] return cls + token_ids_0 + sep + token_ids_1 + sep