def get_word_index(path='imdb_word_index.pkl'):
 path = get_file(path, origin='https://s3.amazonaws.com/text-datasets/imdb_word_index.pkl', md5_hash='72d94b01291be4ff843198d3b0e1e4d7')
 f = open(path, 'rb')
 if (sys.version_info < (3,)):
  data = cPickle.load(f)
 else:
  data = cPickle.load(f, encoding='latin1')
 f.close()
 return data

def get_word_index ( path = 'imdb_word_index.pkl' ) : path = get_file ( path , origin = 'https://s3.amazonaws.com/text-datasets/imdb_word_index.pkl' , md5_hash = '72d94b01291be4ff843198d3b0e1e4d7' ) f = open ( path , 'rb' ) if ( sys . version_info < ( 3 , ) ) : data = cPickle . load ( f ) else : data = cPickle . load ( f , encoding = 'latin1' ) f . close ( ) return data
retrieves the dictionary mapping word indices back to words .