Skip to content

Commit

Permalink
fix str test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jlibovicky committed Dec 16, 2016
1 parent 073b5fb commit d74d84e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 3 additions & 11 deletions tests/str.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ epochs=2
train_dataset=<train_data>
val_dataset=<val_data>
trainer=<trainer>
runners=[<runner_1>,<runner_2>]
runners=[<runner>]
postprocess=None
evaluation=[(target_chars, evaluators.edit_distance.EditDistance)]
logging_period=1
Expand Down Expand Up @@ -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=<decoder>
output_series=target
postprocess=processors.helpers.untruecase

[runner_2]
[runner]
class=runners.runner.GreedyRunner
decoder=<decoder>
output_series=target_greedy
output_series=target_chars
4 changes: 2 additions & 2 deletions tests/tests_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d74d84e

Please sign in to comment.