(self, wenc_s2s, l_input, cls_vec,
                   pnt_start_tok, pnt_end_tok,
                   i_sql_vocab, i_nlu, i_hds,  # for EG
                   tokens, nlu, nlu_t, hds, tt_to_t_idx,  # for EG
                   tb, engine,
                   beam_size=4, beam_only=True)
return score
EG-guided beam-search
EG-guided beam-search
EG - guided beam - search
def EG_forward(self, wenc_s2s, l_input, cls_vec,
                   pnt_start_tok, pnt_end_tok,
                   i_sql_vocab, i_nlu, i_hds,  # for EG
                   tokens, nlu, nlu_t, hds, tt_to_t_idx,  # for EG
                   tb, engine,
                   beam_size=4, beam_only=True):
        """ EG-guided beam-search """

        score = self.decoder_s2s.EG_forward(wenc_s2s, l_input, cls_vec,
                                            pnt_start_tok, pnt_end_tok,
                                            i_sql_vocab, i_nlu, i_hds,  # for EG
                                            tokens, nlu, nlu_t, hds, tt_to_t_idx,  # for EG
                                            tb, engine,
                                            beam_size, beam_only)
        return score
def EG_forward ( self , wenc_s2s , l_input , cls_vec , pnt_start_tok , pnt_end_tok , i_sql_vocab , i_nlu , i_hds , # for EG tokens , nlu , nlu_t , hds , tt_to_t_idx , # for EG tb , engine , beam_size = 4 , beam_only = True ) : score = self . decoder_s2s . EG_forward ( wenc_s2s , l_input , cls_vec , pnt_start_tok , pnt_end_tok , i_sql_vocab , i_nlu , i_hds , # for EG tokens , nlu , nlu_t , hds , tt_to_t_idx , # for EG tb , engine , beam_size , beam_only ) return score