From 0f5a2e0effc117985e5fe4b94e9c60af4a519a15 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 29 Oct 2015 17:53:21 +0100 Subject: debug: show add. rules --- server.rb | 2 +- views/debug.haml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/server.rb b/server.rb index f5e2ddb..a404b6c 100755 --- a/server.rb +++ b/server.rb @@ -327,7 +327,7 @@ get '/debug' do # debug view end - haml :debug, :locals => { :data => data, :data2 => data2, :session_key => SESSION_KEY } + haml :debug, :locals => { :data => data, :data2 => data2, :additional_rules => $additional_rules, :session_key => SESSION_KEY } end get '/confirm' do # client confirms received translation diff --git a/views/debug.haml b/views/debug.haml index 5ca709c..7e8b164 100644 --- a/views/debug.haml +++ b/views/debug.haml @@ -57,6 +57,9 @@ %p learning rate: #{data["learning_rate"]} %p learning rate (sparse): #{data["learning_rate_sparse"]} %p duration: #{data2["durations"][[data2["progress"].to_i-1].max]}ms + %h2 + additional rules (forced rules) + %pre #{additional_rules.join("\n")} %h2 k-best %p bleu | model score | original rank | \|e\| | translation \n features %p.red update needed ("any of the above hypotheses has a lower model score") -- cgit v1.2.3