예제 #1
0
파일: srilm.py 프로젝트: zomux/chiropractor
 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
예제 #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