def occStats(self,path,format,list,plotting): wordlists = PlaintextCorpusReader(path,format) fileids = wordlists.fileids() k = len(fileids) # computing rel frequencies self.fileStatsCum(path,fileids) # plotting vars (2) fignameCum = "Base GQs" figpathCum = plotting +'/'+ fignameCum.replace(' ', '-') + '-stats.pdf' savpathCum = plotting +'/'+ fignameCum.replace(' ', '-') # plotting MyPlot(self.statsCum,self.classstatsCum,fignameCum, "three",plotting,list) # cum # generating report SaveStats(self.classstatsCum,self.statsCum,figpathCum,savpathCum,plotting) # cum
def occStats(self,path,format,list,plotting): wordlists = PlaintextCorpusReader(path,format) fileids = wordlists.fileids() k = len(fileids) # computing rel frequencies self.fileStats(path,fileids) # plotting vars figname = "Base GQs (by class)" figpath = plotting +'/'+ figname.replace(' ', '-') + '-stats.pdf' savpath = plotting +'/'+ figname.replace(' ', '-') # plotting MyPlot(self.stats,self.classstats,figname, "three",plotting,list) # per class (no regression) # generating report SaveStats(self.classstats,self.stats,figpath,savpath,plotting) # per class
def occStats(self, path, format, list, plotting): wordlists = PlaintextCorpusReader(path, format) fileids = wordlists.fileids() k = len(fileids) # computing rel frequencies self.fileStats(path, fileids) # closing threads #self.pool.close() #self.pool.join() # plotting vars figname = "Base GQs" figpath = plotting + '/' + figname.replace(' ', '-') + '-stats.pdf' savpath = plotting + '/' + figname.replace(' ', '-') # plotting MyPlot(self.stats, self.classstats, figname, "one", plotting, list) # all # generating report SaveStats(self.classstats, self.stats, figpath, savpath, plotting) # all