#NEWLINE# def __getattr__( self , name ) : #NEWLINE# #INDENT# '\n        Gets an attribute of this sentence.\n        ' #NEWLINE# if ( name in className . ALLOWED_ATTRIBUTES ) : #NEWLINE# #INDENT# return self . _sentenceData . get ( name , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# className = self . __class__ . __name__ #NEWLINE# msg = ( '%s sentences have no %s attributes' % ( className , name ) ) #NEWLINE# raise AttributeError ( msg )