def feature_encoders(self, data_dir):
     encoder = self.get_or_create_vocab(data_dir, None, force_get=True)
     return {
         "inputs": encoder,
         "NLA_ops_command": text_encoder.RealEncoder(),
         "NLA_ops_action": text_encoder.RealEncoder(),
         "targets": encoder
     }
Пример #2
0
 def feature_encoders(self, data_dir):
     del data_dir
     return {
         "inputs": text_encoder.RealEncoder(),
         "targets": text_encoder.RealEncoder()
     }
 def feature_encoders(self, data_dir):
     encoders = (super(BabiQaClsSepAllTasks_10k,
                       self).feature_encoders(data_dir))
     encoders["action"] = text_encoder.RealEncoder()
     return encoders
Пример #4
0
 def feature_encoders(self, data_dir):
     del data_dir
     return {
         'inputs': text_encoder.RealEncoder(),
         'targets': text_encoder.RealEncoder()
     }