#NEWLINE# def get_paths( self , dset = [ 'train' , 'valid' , 'test' ] ) : #NEWLINE# #INDENT# "\n        Return the paths (as a list of articles' ids) to reach the query,\n        starting from the root page.\n        'dset' is the list of datasets to be returned ('train', 'valid' and/or 'test').\n        " #NEWLINE# outs = [ ] #NEWLINE# for name in dset : #NEWLINE# #INDENT# out = [ ] #NEWLINE# for item in self . f [ ( 'paths_' + name ) ] : #NEWLINE# #INDENT# out . append ( self . tolist ( item ) ) #NEWLINE# #UNINDENT# outs . append ( out ) #NEWLINE# #UNINDENT# return outs