Esempio n. 1
0
 def __init__(
         self,
         data_path,
         broker_labeller_path,
         property_labeller_path):
     BaseCleaner.__init__(
         self, data_path, broker_labeller_path, property_labeller_path)
Esempio n. 2
0
 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
Esempio n. 3
0
 def normalize_attributes(self, entity):
     BaseCleaner.normalize_attributes(self, entity)
     self.normalize_lat_long(entity)
     self.normalize_property_type(entity)
     return entity