#NEWLINE# def _handle_framelexunit_elt( self , elt ) : #NEWLINE# #INDENT# "Load the lexical unit info from an xml element in a frame's xml file." #NEWLINE# luinfo = AttrDict ( ) #NEWLINE# luinfo [ '_type' ] = 'lu' #NEWLINE# luinfo = self . _load_xml_attributes ( luinfo , elt ) #NEWLINE# luinfo [ 'definition' ] = '' #NEWLINE# luinfo [ 'sentenceCount' ] = PrettyDict ( ) #NEWLINE# luinfo [ 'lexemes' ] = PrettyList ( ) #NEWLINE# luinfo [ 'semTypes' ] = PrettyList ( ) #NEWLINE# for sub in elt : #NEWLINE# #INDENT# if sub . tag . endswith ( 'definition' ) : #NEWLINE# #INDENT# luinfo [ 'definition' ] = self . _strip_tags ( sub . text ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if sub . tag . endswith ( 'sentenceCount' ) : #NEWLINE# #INDENT# luinfo [ 'sentenceCount' ] = self . _load_xml_attributes ( PrettyDict ( ) , elt ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if sub . tag . endswith ( 'lexeme' ) : #NEWLINE# #INDENT# luinfo [ 'lexemes' ] . append ( self . _load_xml_attributes ( PrettyDict ( ) , sub ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if sub . tag . endswith ( 'semType' ) : #NEWLINE# #INDENT# semtypeinfo = self . _load_xml_attributes ( PrettyDict ( ) , sub ) #NEWLINE# luinfo [ 'semTypes' ] . append ( self . semtype ( semtypeinfo . ID ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return luinfo