generate labels data using file names