class_docstr: `Dbpedia <https://aclanthology.org/L16-1532.pdf>`_ is a Wikipedia Topic Classification dataset.
  
  we use dataset provided by `LOTClass <https://github.com/yumeng5/LOTClass>`_
  
  Examples:
  
  ..  code-block:: python
  
      from openprompt.data_utils.text_classification_dataset import PROCESSORS
  
      base_path = "datasets/TextClassification"
  
      dataset_name = "dbpedia"
      dataset_path = os.path.join(base_path, dataset_name)
      processor = PROCESSORS[dataset_name.lower()]()
      trainvalid_dataset = processor.get_train_examples(dataset_path)
      test_dataset = processor.get_test_examples(dataset_path)
  
      assert processor.get_num_labels() == 14
      assert len(trainvalid_dataset) == 560000
      assert len(test_dataset) == 70000
code: def __init__(self):
      super().__init__()
      self.labels = [
          "company",
          "school",
          "artist",
          "athlete",
          "politics",
          "transportation",
          "building",
          "river",
          "village",
          "animal",
          "plant",
          "album",
          "film",
          "book",
      ]
  
imports: import os
  import json, csv
  from abc import ABC, abstractmethod
  from collections import defaultdict, Counter
  from typing import List, Dict, Callable
  from openprompt.utils.logging import logger
  from openprompt.data_utils.utils import InputExample
  from openprompt.data_utils.data_processor import DataProcessor
label_desc: Use image node_id 1 to create a new DBpediaProcessor object from inherited base classes: DataProcessor with example: obj = DBpediaProcessor()