#NEWLINE# def _translate_words( self , words ) : #NEWLINE# #INDENT# with tempfile . NamedTemporaryFile ( suffix = '.g2p' , delete = False ) as f : #NEWLINE# #INDENT# for word in words : #NEWLINE# #INDENT# f . write ( ( '%s\n' % word ) ) #NEWLINE# #UNINDENT# tmp_fname = f . name #NEWLINE# #UNINDENT# output = self . execute ( self . fst_model , self , is_file = True , nbest = self . nbest ) #NEWLINE# os . remove ( tmp_fname ) #NEWLINE# return output