def loadDataFile(self,filenum):
    
        keyfile = self.filedir+'keys%d.txt'%filenum
        alisfile = self.filedir+'alis%d.txt'%filenum
        datafile = self.filedir+'feats%d.bin'%filenum

        keys = None
        sizes = None
        if os.path.exists(keyfile):
            keyf = open(keyfile,'r')
            uttdat = [u.split() for u in keyf.readlines()]
            keyf.close()
            sizes = [int(u[1]) for u in uttdat]
            sizes = np.array(sizes)
            keys = [u[0] for u in uttdat]
            
        left = (self.rawsize-self.imgsize)/2
        right = left+self.imgsize
        
        data = np.fromfile(datafile,np.float32).reshape(-1,self.rawsize)
        data = data[:np.sum(sizes),left:right]
        
        alis = np.loadtxt(alisfile, np.int32, usecols=[0])
        alis = alis[:np.sum(sizes)]
        
        return data.T,alis,keys,sizes
dataset/ETHPy150Open amaas/stanford-ctc/py-simple-hybrid/dataLoader.py/DataLoader.loadDataFile/original