def __init__( self, data_path, broker_labeller_path, property_labeller_path): BaseCleaner.__init__( self, data_path, broker_labeller_path, property_labeller_path)
def is_valid_entity(self, entity): if BaseCleaner.is_valid_entity(self, entity): if entity["bathrooms"] \ and entity["longitude"] \ and entity["latitude"] \ and entity["propertySize"]: return True else: return False else: return False
def normalize_attributes(self, entity): BaseCleaner.normalize_attributes(self, entity) self.normalize_lat_long(entity) self.normalize_property_type(entity) return entity