def getClassLabel(file):
    """
    This method extracts the class label from a given file name or file path. 
    
    The class label should either be the file name without ending numbers
    or the folder in which the file is located
    
    @param file: The file name or the file path 
    @returns the class label as string
	"""
    return file.split('.')[0].strip("0123456789")