提交 42e9d7c0 编写于 作者: Q qiaolongfei

restore old code of seqToseq_net

上级 6747c59f
...@@ -81,10 +81,8 @@ def gru_encoder_decoder(data_conf, ...@@ -81,10 +81,8 @@ def gru_encoder_decoder(data_conf,
""" """
for k, v in data_conf.iteritems(): for k, v in data_conf.iteritems():
globals()[k] = v globals()[k] = v
#source_dict_dim = len(open(src_dict_path, "r").readlines()) source_dict_dim = len(open(src_dict_path, "r").readlines())
#target_dict_dim = len(open(trg_dict_path, "r").readlines()) target_dict_dim = len(open(trg_dict_path, "r").readlines())
source_dict_dim = 1000
target_dict_dim = 2000
gen_trans_file = gen_result gen_trans_file = gen_result
src_word_id = data_layer(name='source_language_word', size=source_dict_dim) src_word_id = data_layer(name='source_language_word', size=source_dict_dim)
......
...@@ -19,8 +19,7 @@ sys.path.append("..") ...@@ -19,8 +19,7 @@ sys.path.append("..")
from seqToseq_net import * from seqToseq_net import *
# whether this config is used for generating # whether this config is used for generating
#is_generating = False is_generating = False
is_generating = True
### Data Definiation ### Data Definiation
data_dir = "./data/pre-wmt14" data_dir = "./data/pre-wmt14"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册