def hparams(self, defaults, unused_model_hparams):
    p = defaults
    vocab_size = (self.num_symbols + text_encoder.NUM_RESERVED_TOKENS)
    p.modality = {'inputs': modalities.ModalityType.SYMBOL, 'targets': modalities.ModalityType.SYMBOL}
    p.vocab_size = {'inputs': vocab_size, 'targets': vocab_size}
    p.input_space_id = problem.SpaceID.DIGIT_0
    p.target_space_id = problem.SpaceID.DIGIT_1
def hparams(self, defaults, unused_model_hparams):
    p = defaults
    vocab_size = (self.num_symbols + text_encoder.NUM_RESERVED_TOKENS)
    p.modality = {'inputs': modalities.ModalityType.SYMBOL, 'targets': modalities.ModalityType.SYMBOL}
    p.vocab_size = {'inputs': vocab_size, 'targets': vocab_size}
    p.input_space_id = problem.SpaceID.DIGIT_0
    p.target_space_id = problem.SpaceID.DIGIT_1