我使用下面的代码使用 cPickle 保存了一个模型
picklefile = path.split("-")[0]+".gmm"
cPickle.dump(gmm,open(dest + picklefile,'w'))
print '+ modeling completed for speaker:',picklefile," with data point = ",features.shape
features = np.asarray(())
count = 0
现在我想用这个方法解开文件
models = [cPickle.load(open(fname,'r')) for fname in gmm_files]
但我得到这个错误:
models = [cPickle.load(open(fname,'r')) for fname in gmm_files]
ImportError: No module named gmm
我希望输出取消保存的文件