Test DE to EN.
@@ -108,7 +108,7 @@ base_params = {
"tgt_emb_size": d_model,
"pad_embeddings_2_eight": pad_2_eight,
"out_emb_size": hidden_before_last,
- "pos_embed": False,
+ "pos_embed": True,
# original ConvS2S paper
#"conv_nchannels_kwidth": [(512, 3)]*10 + [(768, 3)]*3 + [(2048, 1)]*2,
@@ -149,8 +149,8 @@ train_params = {
"pad_vocab_to_eight": pad_2_eight,
"src_vocab_file": data_root + "vocab.bpe.32000",
"tgt_vocab_file": data_root + "vocab.bpe.32000",
- "source_file": data_root + "train.tok.clean.bpe.32000.en",
- "target_file": data_root + "train.tok.clean.bpe.32000.de",
+ "source_file": data_root + "train.tok.clean.bpe.32000.de",
+ "target_file": data_root + "train.tok.clean.bpe.32000.en",
"delimiter": " ",
"shuffle": shuffle_train,
"shuffle_buffer_size": 25000,
@@ -168,8 +168,8 @@ eval_params = {
"pad_vocab_to_eight": pad_2_eight,
"src_vocab_file": data_root + "vocab.bpe.32000",
"tgt_vocab_file": data_root + "vocab.bpe.32000",
- "source_file": data_root + "newstest2014.tok.bpe.32000.en",
- "target_file": data_root + "newstest2014.tok.bpe.32000.de",
+ "source_file": data_root + "newstest2014.tok.bpe.32000.de",
+ "target_file": data_root + "newstest2014.tok.bpe.32000.en",
"delimiter": " ",
"shuffle": False,
"repeat": True,
@@ -185,9 +185,9 @@ infer_params = {
"pad_vocab_to_eight": pad_2_eight,
"src_vocab_file": data_root + "vocab.bpe.32000",
"tgt_vocab_file": data_root + "vocab.bpe.32000",
- "source_file": data_root + "newstest2014.tok.bpe.32000.en",
+ "source_file": data_root + "newstest2014.tok.bpe.32000.de",
# this is intentional to be sure that model is not using target
- "target_file": data_root + "newstest2014.tok.bpe.32000.en",
+ "target_file": data_root + "newstest2014.tok.bpe.32000.de",
"delimiter": " ",
"shuffle": False,
"repeat": False,
