Skip to content

Commit

Permalink
Fix minimaxir#57 by not wrapping in a numpy array
Browse files Browse the repository at this point in the history
  • Loading branch information
minimaxir committed Aug 4, 2018
1 parent 42e79fd commit 6bce18c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
setup(
name='textgenrnn',
packages=['textgenrnn'], # this must be the same as the name above
version='1.3.1',
version='1.3.2',
description='Easily train your own text-generating neural network ' \
'of any size and complexity',
long_description=long_description,
Expand Down
1 change: 0 additions & 1 deletion textgenrnn/model_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def generate_sequences_from_texts(texts, indices_list,


def process_sequence(X, textgenrnn, new_tokenizer):
X = np.array(X)
X = new_tokenizer.texts_to_sequences(X)
X = sequence.pad_sequences(
X, maxlen=textgenrnn.config['max_length'])
Expand Down

0 comments on commit 6bce18c

Please sign in to comment.