#NEWLINE# def extract_features( self , text ) : #NEWLINE# #INDENT# 'Extracts features from a body of text.\n\n        :rtype: dictionary of features\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return self . feature_extractor ( text , self . train_set ) #NEWLINE# #UNINDENT# except ( TypeError , AttributeError ) : #NEWLINE# #INDENT# return self . feature_extractor ( text )