#NEWLINE# def to_raw( self , doc ) : #NEWLINE# #INDENT# return RawDocument ( { #NEWLINE# #INDENT# 'doc' : self . doc , #NEWLINE# 'docID' : doc . docID , #NEWLINE# 'source' : doc . source , #NEWLINE# 'filetype' : doc . filetype , #NEWLINE# 'timestamps' : doc . timestamps , #NEWLINE# #UNINDENT# } , validate = False , clean = False )