class_docstr: # TODO citation
  
  Examples:
  
  .. code-block:: python
  
      from openprompt.data_utils.conditional_generation_dataset import PROCESSORS
  
      base_path = "datasets/CondGen"
  
      dataset_name = "webnlg_2017"
      dataset_path = os.path.join(base_path, dataset_name)
      processor = PROCESSORS[dataset_name.lower()]()
      train_dataset = processor.get_train_examples(dataset_path)
      valid_dataset = processor.get_train_examples(dataset_path)
      test_dataset = processor.get_test_examples(dataset_path)
  
      assert len(train_dataset) == 18025
      assert len(valid_dataset) == 18025
      assert len(test_dataset) == 4928
      assert test_dataset[0].text_a == " | Abilene_Regional_Airport : cityServed : Abilene,_Texas"
      assert test_dataset[0].text_b == ""
      assert test_dataset[0].tgt_text == "Abilene, Texas is served by the Abilene regional airport."
class_docstr_tok: ["#","TODO","citation","Examples",":","..","code-block",":",":","python","from","openprompt.data_utils.conditional_generation_dataset","import","PROCESSORS","base_path","=","``","datasets\/CondGen","''","dataset_name","=","``","webnlg_2017","''","dataset_path","=","os.path.join","(","base_path",",","dataset_name",")","processor","=","PROCESSORS","[","dataset_name.lower","(",")","]","(",")","train_dataset","=","processor.get_train_examples","(","dataset_path",")","valid_dataset","=","processor.get_train_examples","(","dataset_path",")","test_dataset","=","processor.get_test_examples","(","dataset_path",")","assert","len","(","train_dataset",")","==","18025","assert","len","(","valid_dataset",")","==","18025","assert","len","(","test_dataset",")","==","4928","assert","test_dataset","[","0","]",".text_a","==","``","|","Abilene_Regional_Airport",":","cityServed",":","Abilene",",","_Texas","''","assert","test_dataset","[","0","]",".text_b","==","``","''","assert","test_dataset","[","0","]",".tgt_text","==","``","Abilene",",","Texas","is","served","by","the","Abilene","regional","airport",".","''"]
code: def get_src_tgt_len_ratio(
      self,
  ):
      pass
  
imports: from openprompt.data_utils.utils import InputExample
  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.data_processor import DataProcessor
  from tqdm import tqdm
label_desc: Use image node_id 3 for calling the WebNLGProcessor obj's underlying member method code with example usage: obj.get_src_tgt_len_ratio() without return types