def elideNewTgt(self, old_e_tgt, lm_obj, lm_order, mgram_beg, e_new_len, curr_state, eTgtLstNew):
        if mgram_beg != e_new_len and (curr_state is not None \
                or e_new_len - mgram_beg >= lm_order):
            self.phrStateTupLst.append( (' '.join( eTgtLstNew[mgram_beg:e_new_len] ), curr_state) )

        # Finally elide the string again and compute the right LM state if required
        if e_new_len < lm_order:
            self.eTgtLst = eTgtLstNew
        else:
            if self.r_lm_state is None and not settings.opts.no_lm_state:
                self.r_lm_state = lm_obj.getLMState(' '.join( eTgtLstNew[-lm_order:] ))
            self.eTgtLst = eTgtLstNew[0:lm_order-1] + [lm_obj.elider] + eTgtLstNew[lm_order-1:]
        self.e_len = len(self.eTgtLst)
        if old_e_tgt == ' '.join(self.eTgtLst):
            self.new_elided_tgt = False
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/languageModelManager.py/ConsequentItem.elideNewTgt/swapped operands of `-`