Skip to content

Commit

Permalink
bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
oadams committed Aug 20, 2018
1 parent 6f30a05 commit 922e01f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persephone/corpus_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def train_batch_gen(self) -> Iterator:
""" Returns a generator that outputs batches in the training data."""

if len(self.train_fns) == 0:
raise PersephoneException("No training data available; cannot
generate training batches.")
raise PersephoneException("""No training data available; cannot
generate training batches.""")

# Create batches of batch_size and shuffle them.
fn_batches = self.make_batches(self.train_fns)
Expand Down

0 comments on commit 922e01f

Please sign in to comment.