MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / load

Method load

tests/cluecode/data/finder/email/thomas.py:105–111  ·  view source on GitHub ↗
(self, fname='bayesdata.dat')

Source from the content-addressed store, hash-verified

103 fp.close()
104
105 def load(self, fname='bayesdata.dat'):
106 from cPickle import load
107 fp = open(fname, 'rb')
108 self.pools = load(fp)
109 fp.close()
110 self.corpus = self.pools['__Corpus__']
111 self.dirty = True
112
113 def poolNames(self):
114 """Return a sorted list of Pool names.

Calls 2

loadFunction · 0.50
closeMethod · 0.45