def build_attributes(self): self.attributes["normalized_sd"] = string_functions.normalize(self.earmark.short_description) self.attributes["sd_shingles"] = string_functions.shinglize(self.attributes["normalized_sd"]) self.attributes["normalized_fd"] = string_functions.normalize(self.earmark.full_description) self.attributes["fd_shingles"] = string_functions.shinglize(self.attributes["normalized_fd"]) self.attributes["normalized_recepient"] = string_functions.normalize(self.earmark.recepient) self.attributes["recepient_shingles"] = string_functions.shinglize(self.attributes["normalized_recepient"])
def build_attributes(self): self.attributes["normalized_sd"] = string_functions.normalize( self.earmark.short_description) self.attributes["sd_shingles"] = string_functions.shinglize( self.attributes["normalized_sd"]) self.attributes["normalized_fd"] = string_functions.normalize( self.earmark.full_description) self.attributes["fd_shingles"] = string_functions.shinglize( self.attributes["normalized_fd"]) self.attributes["normalized_recepient"] = string_functions.normalize( self.earmark.recepient) self.attributes["recepient_shingles"] = string_functions.shinglize( self.attributes["normalized_recepient"])
def build_attributes(self): self.attributes[ "normalized_entity_inferred_name"] = string_functions.normalize( self.entity.entity_inferred_name) self.attributes["shingles"] = string_functions.shinglize( self.attributes["normalized_entity_inferred_name"]) self.attributes["normalized_cells"] = [ string_functions.normalize(cell) for cell in self.entity.entity_inferred_name.split(' | ') ] self.attributes["cell_shingles"] = [ string_functions.shinglize(cell) for cell in self.attributes["normalized_cells"] ]
def build_attributes(self): self.attributes["normalized_entity_inferred_name"] = string_functions.normalize(self.entity.entity_inferred_name) self.attributes["shingles"] = string_functions.shinglize(self.attributes["normalized_entity_inferred_name"]) self.attributes["normalized_cells"] = [string_functions.normalize(cell) for cell in self.entity.entity_inferred_name.split(' | ') ] self.attributes["cell_shingles"] = [string_functions.shinglize(cell) for cell in self.attributes["normalized_cells"] ]