Example #1
0
 def load(self):
     srilm_wrapper.readVocab(self.vocab_file)
     self.model = srilm_wrapper.initLM(self.n)
     srilm_wrapper.readLM(self.model, self.lm_file)
     return
Example #2
0
 def load(self):
     srilm_wrapper.readVocab("%s/%s" % (self.lm_directory, self.vocab_file))
     self.model = srilm_wrapper.initLM(self.n)
     srilm_wrapper.readLM(self.model, "%s/%s" % (self.lm_directory, self.lm_file))
     return