class_docstr: labels of the dataset is optional
  
  here's the examples of loading the labels:
  
  :obj:`I`: ``DataProcessor(labels = ['positive', 'negative'])``
  
  :obj:`II`: ``DataProcessor(labels_path = 'datasets/labels.txt')``
  labels file should have label names separated by any blank characters, such as
  
  ..  code-block::
  
      positive neutral
      negative
  
  Args:
      labels (:obj:`Sequence[Any]`, optional): class labels of the dataset. Defaults to None.
      labels_path (:obj:`str`, optional): Defaults to None. If set and :obj:`labels` is None, load labels from :obj:`labels_path`.
class_docstr_tok: ["labels","of","the","dataset","is","optional","here","'s","the","examples","of","loading","the","labels",":",":","obj",":","`","I","`",":","``","DataProcessor","(","labels","=","[","'positive","'",",","'negative","'","]",")","``",":","obj",":","`","II","`",":","``","DataProcessor","(","labels_path","=","'datasets\/labels.txt","'",")","``","labels","file","should","have","label","names","separated","by","any","blank","characters",",","such","as","..","code-block",":",":","positive","neutral","negative","Args",":","labels","(",":","obj",":","`","Sequence","[","Any","]","`",",","optional",")",":","class","labels","of","the","dataset",".","Defaults","to","None",".","labels_path","(",":","obj",":","`","str","`",",","optional",")",":","Defaults","to","None",".","If","set","and",":","obj",":","`","labels","`","is","None",",","load","labels","from",":","obj",":","`","labels_path","`","."]
docstr: get the :obj:`split` of dataset under :obj:`data_dir`
  
  :obj:`data_dir` is the base path of the dataset, for example:
  
  training file could be located in ``data_dir/train.txt``
  
  Args:
      data_dir (str): the base path of the dataset
      split (str): ``train`` / ``dev`` / ``test`` / ``unlabeled``
  
  Returns:
      List[InputExample]: return a list of :py:class:`~openprompt.data_utils.data_utils.InputExample`
docstr_tok: ["get","the",":","obj",":","`","split","`","of","dataset","under",":","obj",":","`","data_dir","`",":","obj",":","`","data_dir","`","is","the","base","path","of","the","dataset",",","for","example",":","training","file","could","be","located","in","``","data_dir\/train.txt","``","Args",":","data_dir","(","str",")",":","the","base","path","of","the","dataset","split","(","str",")",":","``","train","``","\/","``","dev","``","\/","``","test","``","\/","``","unlabeled","``","Returns",":","List","[","InputExample","]",":","return","a","list","of",":","py",":","class",":","`","~openprompt.data_utils.data_utils.InputExample","`"]
code: def get_examples(
      self, data_dir: Optional[str] = None, split: Optional[str] = None
  ) -> List[InputExample]:
      """get the :obj:`split` of dataset under :obj:`data_dir`
  
      :obj:`data_dir` is the base path of the dataset, for example:
  
      training file could be located in ``data_dir/train.txt``
  
      Args:
          data_dir (str): the base path of the dataset
          split (str): ``train`` / ``dev`` / ``test`` / ``unlabeled``
  
      Returns:
          List[InputExample]: return a list of :py:class:`~openprompt.data_utils.data_utils.InputExample`
      """
      raise NotImplementedError
  
file_path: OpenPrompt/openprompt/data_utils/data_processor.py
imports: from typing import *
  from abc import abstractmethod
  from openprompt.data_utils.utils import InputExample
label_desc: Use image node_id 14 for calling the DataProcessor obj's underlying member method code with example usage: obj.get_examples(data_dir, split) without return types