Ejemplo n.º 1
0
 def _create_task_specific_reader(self):
     return baseline.create_pred_reader(self.config_params['preproc']['mxlen'],
                                        zeropadding=0,
                                        clean_fn=self.config_params['preproc']['clean_fn'],
                                        vec_alloc=self.config_params['preproc']['vec_alloc'],
                                        src_vec_trans=self.config_params['preproc']['src_vec_trans'],
                                        reader_type=self.config_params['loader']['reader_type'])
Ejemplo n.º 2
0
 def _create_task_specific_reader(self):
     return baseline.create_pred_reader(self.config_params['preproc']['mxlen'],
                                        zeropadding=0,
                                        clean_fn=self.config_params['preproc']['clean_fn'],
                                        vec_alloc=self.config_params['preproc']['vec_alloc'],
                                        src_vec_trans=self.config_params['preproc']['src_vec_trans'],
                                        mxwlen=self.config_params['preproc'].get('mxwlen', -1),
                                        trim=self.config_params['preproc'].get('trim', False),
                                        **self.config_params['loader'])