class_docstr: The input data structure of Transformer modules (BERT, ERNIE and so on).
class_docstr_tok: ["The","input","data","structure","of","Transformer","modules","(","BERT",",","ERNIE","and","so","on",")","."]
docstr: The input data structure.
  Args:
    guid (:obj:`int`):
        Unique id for the input data.
    text_a (:obj:`str`, `optional`, defaults to :obj:`None`):
        The first sequence. For single sequence tasks, only this sequence must be specified.
    text_b (:obj:`str`, `optional`, defaults to :obj:`None`):
        The second sequence if sentence-pair.
    label (:obj:`str`, `optional`, defaults to :obj:`None`):
        The label of the example.
  Examples:
      .. code-block:: python
          from paddlehub.datasets.base_nlp_dataset import InputExample
          example = InputExample(guid=0,
                          text_a='15.4寸笔记本的键盘确实爽，基本跟台式机差不多了',
                          text_b='蛮喜欢数字小键盘，输数字特方便，样子也很美观，做工也相当不错',
                          label='1')
docstr_tok: ["The","input","data","structure",".","Args",":","guid","(",":","obj",":","`","int","`",")",":","Unique","id","for","the","input","data",".","text_a","(",":","obj",":","`","str","`",",","`","optional","`",",","defaults","to",":","obj",":","`","None","`",")",":","The","first","sequence",".","For","single","sequence","tasks",",","only","this","sequence","must","be","specified",".","text_b","(",":","obj",":","`","str","`",",","`","optional","`",",","defaults","to",":","obj",":","`","None","`",")",":","The","second","sequence","if","sentence-pair",".","label","(",":","obj",":","`","str","`",",","`","optional","`",",","defaults","to",":","obj",":","`","None","`",")",":","The","label","of","the","example",".","Examples",":","..","code-block",":",":","python","from","paddlehub.datasets.base_nlp_dataset","import","InputExample","example","=","InputExample","(","guid=0",",","text_a='15.4\u5bf8\u7b14\u8bb0\u672c\u7684\u952e\u76d8\u786e\u5b9e\u723d\uff0c\u57fa\u672c\u8ddf\u53f0\u5f0f\u673a\u5dee\u4e0d\u591a\u4e86","'",",","text_b='\u86ee\u559c\u6b22\u6570\u5b57\u5c0f\u952e\u76d8\uff0c\u8f93\u6570\u5b57\u7279\u65b9\u4fbf\uff0c\u6837\u5b50\u4e5f\u5f88\u7f8e\u89c2\uff0c\u505a\u5de5\u4e5f\u76f8\u5f53\u4e0d\u9519","'",",","label=","'","1","'",")"]
code: def __init__(
      self,
      guid: int,
      text_a: str,
      text_b: Optional[str] = None,
      label: Optional[str] = None,
  ):
      """
      The input data structure.
      Args:
        guid (:obj:`int`):
            Unique id for the input data.
        text_a (:obj:`str`, `optional`, defaults to :obj:`None`):
            The first sequence. For single sequence tasks, only this sequence must be specified.
        text_b (:obj:`str`, `optional`, defaults to :obj:`None`):
            The second sequence if sentence-pair.
        label (:obj:`str`, `optional`, defaults to :obj:`None`):
            The label of the example.
      Examples:
          .. code-block:: python
              from paddlehub.datasets.base_nlp_dataset import InputExample
              example = InputExample(guid=0,
                              text_a='15.4寸笔记本的键盘确实爽，基本跟台式机差不多了',
                              text_b='蛮喜欢数字小键盘，输数字特方便，样子也很美观，做工也相当不错',
                              label='1')
      """
      self.guid = guid
      self.text_a = text_a
      self.text_b = text_b
      self.label = label
  
imports: import csv
  import io
  import os
  from typing import Dict, List, Optional, Union, Tuple
  import numpy
  import paddle
  import paddlenlp
  from packaging.version import Version
  from paddlehub.env import DATA_HOME
  from paddlenlp.transformers import PretrainedTokenizer
  from paddlenlp.data import JiebaTokenizer
  from paddlehub.utils.log import logger
  from paddlehub.utils.utils import download, reseg_token_label, pad_sequence, trunc_sequence
  from paddlehub.utils.xarfile import is_xarfile, unarchive
label_desc: Use image node_id 1 to create a new InputExample object from inherited base classes: object with example: obj = InputExample(guid, text_a, text_b, label)