Esempio n. 1
0
 def load(self):
     """
     load model objects from p
     """
     self.feats = sbd_util.load_pickle(self.path + 'feats')
     self.lower_words = sbd_util.load_pickle(self.path + 'lower_words')
     self.non_abbrs = sbd_util.load_pickle(self.path + 'non_abbrs')
Esempio n. 2
0
 def load(self):
     """
     load model objects from p
     """
     self.feats = sbd_util.load_pickle(self.path + 'feats')
     self.lower_words = sbd_util.load_pickle(self.path + 'lower_words')
     self.non_abbrs = sbd_util.load_pickle(self.path + 'non_abbrs')
Esempio n. 3
0
 def load_from_file(self, a, l, n):
     """
     load model from files. Modified by zuofeng
     """
     print a
     self.feats = sbd_util.load_pickle(a)
     print a
     self.lower_words = sbd_util.load_pickle(l)
     self.non_abbrs = sbd_util.load_pickle(n)