We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4558cd3 commit bcf9562Copy full SHA for bcf9562
mla/datasets/base.py
@@ -51,7 +51,7 @@ def load(dataset="training", digits=np.arange(10)):
51
52
53
def load_nietzsche():
54
- text = open(get_filename("data/nietzsche.txt")).read().decode("utf-8").lower()
+ text = open(get_filename("data/nietzsche.txt")).read().lower() # str Object has already been decoded
55
chars = set(list(text))
56
char_indices = {ch: i for i, ch in enumerate(chars)}
57
indices_char = {i: ch for i, ch in enumerate(chars)}
0 commit comments