Skip to content

Commit

Permalink
Hotfix: use correct vocab and add_bos setting for target side validat…
Browse files Browse the repository at this point in the history
…ion data (#186)
  • Loading branch information
fhieber authored Nov 7, 2017
1 parent 20587b9 commit 90a7e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sockeye/data_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_training_data_iters(source: str, target: str,

logger.info("Creating validation data iterator")
val_source_sentences = SentenceReader(validation_source, vocab_source, add_bos=False, limit=None)
val_target_sentences = SentenceReader(validation_target, vocab_source, add_bos=False, limit=None)
val_target_sentences = SentenceReader(validation_target, vocab_target, add_bos=True, limit=None)

val_iter = ParallelBucketSentenceIter(val_source_sentences,
val_target_sentences,
Expand Down

0 comments on commit 90a7e47

Please sign in to comment.