docstr: Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
  adding special tokens. A sequence has the following format:
  
  - single sequence: ``X </s>``
  - pair of sequences: ``A </s> B </s>``
  
  Args:
      token_ids_0 (:obj:`List[int]`):
          List of IDs to which the special tokens will be added.
      token_ids_1 (:obj:`List[int]`, `optional`):
          Optional second list of IDs for sequence pairs.
  
  Returns:
      :obj:`List[int]`: List of `input IDs <../glossary.html#input-ids>`__ with the appropriate special tokens.
docstr_tok: ["Build","model","inputs","from","a","sequence","or","a","pair","of","sequence","for","sequence","classification","tasks","by","concatenating","and","adding","special","tokens",".","A","sequence","has","the","following","format",":","-","single","sequence",":","``","X","<","\/s",">","``","-","pair","of","sequences",":","``","A","<","\/s",">","B","<","\/s",">","``","Args",":","token_ids_0","(",":","obj",":","`","List","[","int","]","`",")",":","List","of","IDs","to","which","the","special","tokens","will","be","added",".","token_ids_1","(",":","obj",":","`","List","[","int","]","`",",","`","optional","`",")",":","Optional","second","list","of","IDs","for","sequence","pairs",".","Returns",":",":","obj",":","`","List","[","int","]","`",":","List","of","`","input","IDs","<","..","\/glossary.html","#","input-ids",">","`","__","with","the","appropriate","special","tokens","."]
code: def build_inputs_with_special_tokens(
      self,
      token_ids_0: List[int],
      token_ids_1: Optional[List[int]] = None,
  ) -> List[int]:
      """
      Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
      adding special tokens. A sequence has the following format:
  
      - single sequence: ``X </s>``
      - pair of sequences: ``A </s> B </s>``
  
      Args:
          token_ids_0 (:obj:`List[int]`):
              List of IDs to which the special tokens will be added.
          token_ids_1 (:obj:`List[int]`, `optional`):
              Optional second list of IDs for sequence pairs.
  
      Returns:
          :obj:`List[int]`: List of `input IDs <../glossary.html#input-ids>`__ with the appropriate special tokens.
      """
      token_ids_0 = self._add_eos_if_not_present(token_ids_0)
      if token_ids_1 is None:
          return token_ids_0
      else:
          token_ids_1 = self._add_eos_if_not_present(token_ids_1)
          return token_ids_0 + token_ids_1
  
file_path: DeepKE/src/deepke/name_entity_re/cross/seq2seq/t5_bert_tokenizer.py
imports: import logging
  from typing import Optional, List
  from transformers import BertTokenizer
label_desc: Use image node_id 5 for calling the T5BertTokenizer obj's underlying member method code with example usage: obj.build_inputs_with_special_tokens(token_ids_0, token_ids_1) and returns: token_ids_0, unknown