def scorePhrnElide(self, wordsLst, phr_len, mgramSpans):
        '''Score all the complete m-grams in a given target phrase'''

        lm_temp = 0.0
        for (mgram_beg, mgram_end) in mgramSpans:
            for i in range( mgram_beg, mgram_end - (self.lm_order - 1) ):
                lm_temp += getNGramProb(self.LM, ' '.join( wordsLst[i:i+self.lm_order] ), self.lm_order)

        # Elide the string again
        e_tgt = ' '.join(wordsLst[0:self.lm_order-1] + [self.elider] + wordsLst[phr_len-(self.lm_order-1):])

        return (lm_temp / SRILangModel.log_normalizer, e_tgt)
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/lmSRILM.py/SRILangModel.scorePhrnElide/original