From d74d84e5ade3c714ee5e4e1ddbf2e193154004fe Mon Sep 17 00:00:00 2001 From: Jindrich Libovicky Date: Fri, 16 Dec 2016 18:11:18 +0100 Subject: [PATCH] fix str test case --- tests/str.ini | 14 +++----------- tests/tests_run.sh | 4 ++-- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/tests/str.ini b/tests/str.ini index 8503f8d12..32e8ff022 100644 --- a/tests/str.ini +++ b/tests/str.ini @@ -10,7 +10,7 @@ epochs=2 train_dataset= val_dataset= trainer= -runners=[,] +runners=[] postprocess=None evaluation=[(target_chars, evaluators.edit_distance.EditDistance)] logging_period=1 @@ -95,15 +95,7 @@ class=config.utils.adadelta_optimizer epsilon=1.0e-6 rho=0.95 -[runner_1] -; This block is used for both validation and testing to run the model on -; a given dataset. -class=runners.rnn_runner.RuntimeRnnRunner -decoder= -output_series=target -postprocess=processors.helpers.untruecase - -[runner_2] +[runner] class=runners.runner.GreedyRunner decoder= -output_series=target_greedy +output_series=target_chars diff --git a/tests/tests_run.sh b/tests/tests_run.sh index 06b7f53aa..de63f823c 100755 --- a/tests/tests_run.sh +++ b/tests/tests_run.sh @@ -14,6 +14,6 @@ sleep 20 curl 127.0.0.1:5000 -H "Content-Type: application/json" -X POST -d '{"source": ["I am the eggman.", "I am the walrus ."]}' kill $SERVER_PID -rm -rf tests/tmp-test-output - bin/neuralmonkey-train tests/str.ini + +rm -rf tests/tmp-test-output