summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nerv/examples/lmptb/bilstmlm_ptb_main.lua4
-rw-r--r--nerv/examples/lmptb/lstmlm_ptb_main.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/nerv/examples/lmptb/bilstmlm_ptb_main.lua b/nerv/examples/lmptb/bilstmlm_ptb_main.lua
index 7e238b3..0472588 100644
--- a/nerv/examples/lmptb/bilstmlm_ptb_main.lua
+++ b/nerv/examples/lmptb/bilstmlm_ptb_main.lua
@@ -352,7 +352,7 @@ commands = {}
test_iter = -1
--for testout(question)
-local q_file = "ptb.test.txt.q10rs1_Msss.adds"
+q_file = "/home/slhome/txh18/workspace/ptb/questionGen/gen/ptb.test.txt.q10rs1_Msss.adds"
if arg[2] ~= nil then
nerv.printf("%s applying arg[2](%s)...\n", global_conf.sche_log_pre, arg[2])
@@ -500,7 +500,7 @@ end --if commands["test"]
if commands["testout"] == 1 then
nerv.printf("===TEST OUT===\n")
nerv.printf("q_file:\t%s\n", q_file)
- local q_fn = qdata_dir .. '/' .. q_file
+ local q_fn = q_file --qdata_dir .. '/' .. q_file
global_conf.sche_log_pre = "[SCHEDULER FINAL_TEST]:"
if final_iter ~= -1 and test_iter == -1 then
test_iter = final_iter
diff --git a/nerv/examples/lmptb/lstmlm_ptb_main.lua b/nerv/examples/lmptb/lstmlm_ptb_main.lua
index b76fab8..6e3fab9 100644
--- a/nerv/examples/lmptb/lstmlm_ptb_main.lua
+++ b/nerv/examples/lmptb/lstmlm_ptb_main.lua
@@ -339,7 +339,7 @@ commands_str = "train:test"
commands = {}
test_iter = -1
--for testout(question)
-q_file = "ptb.test.txt.q10rs1_Msss.adds"
+q_file = "/home/slhome/txh18/workspace/ptb/questionGen/gen/ptb.test.txt.q10rs1_Msss.adds"
if arg[2] ~= nil then
nerv.printf("%s applying arg[2](%s)...\n", global_conf.sche_log_pre, arg[2])
@@ -487,7 +487,7 @@ end --if commands["test"]
if commands["testout"] == 1 then
nerv.printf("===TEST OUT===\n")
nerv.printf("q_file:\t%s\n", q_file)
- local q_fn = qdata_dir .. '/' .. q_file
+ local q_fn = q_file --qdata_dir .. '/' .. q_file
global_conf.sche_log_pre = "[SCHEDULER TESTOUT]:"
if final_iter ~= -1 and test_iter == -1 then
test_iter = final_iter