chainer.datasets.get_ptb_words_vocabulary¶
-
chainer.datasets.
get_ptb_words_vocabulary
()[source]¶ Gets the Penn Tree Bank word vocabulary.
Returns: Dictionary that maps words to corresponding word IDs. The IDs are used in the Penn Tree Bank long sequence datasets. Return type: dict See also
See
get_ptb_words()
for the actual datasets.