示例#1
0
 def __init__(self, id, relationship, attribute, weight):
     self.id = id
     self.relationship = common.standardize_text(relationship)
     self.attribute = common.standardize_text(attribute)
     self.weight = weight
     self.concat = s.nullify_blanks(s.make_string([self.relationship, self.attribute]))
     self.is_populated = self.concat is not None
示例#2
0
 def __init__(self, id, given, other, family, full_name):
     self.id = id
     self.given = common.standardize_text(given)
     self.other = common.standardize_text(other)
     self.family = common.standardize_text(family)
     self.concat = s.nullify_blanks(s.make_string([self.given, self.other, self.family]))
     self.is_populated = self.concat is not None
示例#3
0
 def __init__(self, id, street1, street2, city, county_equivalent, state_equivalent, postal_code, country_name,
              full_address):
     self.id = id
     self.street1 = common.standardize_text(street1)
     self.street2 = common.standardize_text(street2)
     self.city = common.standardize_text(city)
     self.county_equivalent = common.standardize_text(county_equivalent)
     self.state_equivalent = common.standardize_text(state_equivalent)
     self.postal_code = common.standardize_text(postal_code)
     self.country_name = common.standardize_text(country_name)
     self.full_address = common.standardize_text(full_address)
     self.concat = s.nullify_blanks(string.make_string([self.street1, self.street2, self.city,
                                                        self.county_equivalent, self.state_equivalent,
                                                        self.postal_code, self.country_name]))
     if self.concat is None:
         self.concat = self.full_address
     self.is_populated = self.concat is not None