4 ERROR_RATE=float(1)/CAPACITY
5 bloom = pydablooms.Dablooms(capacity=CAPACITY, error_rate=ERROR_RATE,filepath=
'bloom.bin')
7 f = open(
'classes.txt',
'r')
8 g = open('classnames.txt',
'w')
10 fields = line.split(
"'")
11 if fields[0] ==
'class ' :
12 g.write(fields[1]+
'\n')
16 h = open(
'classnames.txt',
'rb')
19 bloom.add(line.rstrip(), i)