#NEWLINE# @ classmethod #NEWLINE# def from_dict( cls , dict_repr , return_obj = None ) : #NEWLINE# #INDENT# if ( not dict_repr ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( not return_obj ) : #NEWLINE# #INDENT# return_obj = cls ( ) #NEWLINE# #UNINDENT# return_obj . overall_score = dict_repr . get ( 'overall_score' ) #NEWLINE# return_obj . base_score = dict_repr . get ( 'base_score' ) #NEWLINE# return_obj . base_vector = dict_repr . get ( 'base_vector' ) #NEWLINE# return_obj . temporal_score = dict_repr . get ( 'temporal_score' ) #NEWLINE# return_obj . temporal_vector = dict_repr . get ( 'temporal_vector' ) #NEWLINE# return_obj . environmental_score = dict_repr . get ( 'environmental_score' ) #NEWLINE# return_obj . environmental_vector = dict_repr . get ( 'environmental_vector' ) #NEWLINE# return dict_repr