#NEWLINE# def parse( self , tagged_sent ) : #NEWLINE# #INDENT# 'Parsed tagged tokens into parse Tree of chunks' #NEWLINE# if ( not tagged_sent ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# ( words , tags ) = zip ( * c ) #NEWLINE# chunks = self . tagger . tag ( tags ) #NEWLINE# return conlltags2tree ( [ ( w , t , c ) for ( w , ( t , c ) ) in zip ( words , chunks ) ] )