@classmethod
    def initLMs(cls, tot_lm_feats, lmTupLst, use_srilm=False):
        assert (tot_lm_feats == len(lmTupLst)), \
                "Error: # of LM features does not match the number of LMs specified as lmTupLst"

        cls.debug = settings.opts.debug
        cls.use_srilm = use_srilm
        cls.no_dscnt_UNKlm = settings.opts.no_dscnt_UNKlm
        cls.lmLst = []
        cls.lmWgts = []

        for lm_indx in xrange( tot_lm_feats ):
            (lm_order, lm_file) = lmTupLst[lm_indx]
            sys.stderr.write( "Loading LM file %s ... \n" % (lm_file) )
            t_beg = time.time()
            if cls.use_srilm: lm = SRILangModel(lm_order, lm_file, settings.opts.elider)
            else: lm = KENLangModel(lm_order, lm_file, settings.opts.elider)
            cls.lmLst.append(lm)
            t_end = time.time()
            sys.stderr.write( (t_end - t_beg) % "Time taken for loading LM        : %1.3f sec\n\n" )
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/languageModelManager.py/LanguageModelManager.initLMs/swapped operands of `%`