MCPcopy Create free account
hub / github.com/PacktPublishing/Getting-Started-with-TensorFlow / ptb_raw_data

Function ptb_raw_data

Chapter 5/reader.py:51–79  ·  view source on GitHub ↗

Load PTB raw data from data directory "data_path". Reads PTB text files, converts strings to integer ids, and performs mini-batching of the inputs. The PTB dataset comes from Tomas Mikolov's webpage: http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz Args: data_path: strin

(data_path=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

_build_vocabFunction · 0.85
_file_to_word_idsFunction · 0.85

Tested by

no test coverage detected