Skip to content

Commit

Permalink
DOC: Fix IMDB get_word_index documentation (#10576)
Browse files Browse the repository at this point in the history
* DOC: Fix IMDB get_word_index documentation

* DOC: Fix reuters get_word_index documentation
  • Loading branch information
rvinas authored and fchollet committed Jul 1, 2018
1 parent 5a7a789 commit 354bd35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keras/datasets/imdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def load_data(path='imdb.npz', num_words=None, skip_top=0,


def get_word_index(path='imdb_word_index.json'):
"""Retrieves the dictionary mapping word indices back to words.
"""Retrieves the dictionary mapping words to word indices.
# Arguments
path: where to cache the data (relative to `~/.keras/dataset`).
Expand Down
2 changes: 1 addition & 1 deletion keras/datasets/reuters.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def load_data(path='reuters.npz', num_words=None, skip_top=0,


def get_word_index(path='reuters_word_index.json'):
"""Retrieves the dictionary mapping word indices back to words.
"""Retrieves the dictionary mapping words to word indices.
# Arguments
path: where to cache the data (relative to `~/.keras/dataset`).
Expand Down

0 comments on commit 354bd35

Please sign in to comment.