class_docstr: Base class for bAbi question answering problems.
class_docstr_tok: ["Base","class","for","bAbi","question","answering","problems","."]
docstr: Returns problem_hparams.
  
  Args:
    defaults: default hyperparameters
    unused_model_hparams: model hyperparameters
docstr_tok: ["Returns","problem_hparams",".","Args",":","defaults",":","default","hyperparameters","unused_model_hparams",":","model","hyperparameters"]
code: def hparams(self, defaults, unused_model_hparams):
      """Returns problem_hparams.
  
      Args:
        defaults: default hyperparameters
        unused_model_hparams: model hyperparameters
  
      """
      (super(BabiQa, self).hparams(defaults, unused_model_hparams))
      p = defaults
      num_classes = self._encoders["targets"].vocab_size
      p.modality = {"targets": modalities.ModalityType.CLASS_LABEL}
      p.vocab_size = {"targets": num_classes}
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import os
  import shutil
  import tarfile
  import requests
  import six
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.data_generators import tokenizer
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import metrics
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 15 for calling the BabiQa obj's underlying member method code with example usage: obj.hparams(defaults, unused_model_hparams) without return types