diff --git a/demo/seqToseq/seqToseq_net.py b/demo/seqToseq/seqToseq_net.py index a85928f822d86..37a2d648743e1 100644 --- a/demo/seqToseq/seqToseq_net.py +++ b/demo/seqToseq/seqToseq_net.py @@ -81,10 +81,8 @@ def gru_encoder_decoder(data_conf, """ for k, v in data_conf.iteritems(): globals()[k] = v - #source_dict_dim = len(open(src_dict_path, "r").readlines()) - #target_dict_dim = len(open(trg_dict_path, "r").readlines()) - source_dict_dim = 1000 - target_dict_dim = 2000 + source_dict_dim = len(open(src_dict_path, "r").readlines()) + target_dict_dim = len(open(trg_dict_path, "r").readlines()) gen_trans_file = gen_result src_word_id = data_layer(name='source_language_word', size=source_dict_dim) diff --git a/demo/seqToseq/translation/train.conf b/demo/seqToseq/translation/train.conf index c0c9ebc6b1d66..72b7ccdbb95db 100644 --- a/demo/seqToseq/translation/train.conf +++ b/demo/seqToseq/translation/train.conf @@ -19,8 +19,7 @@ sys.path.append("..") from seqToseq_net import * # whether this config is used for generating -#is_generating = False -is_generating = True +is_generating = False ### Data Definiation data_dir = "./data/pre-wmt14"