diff options
-rwxr-xr-x | server.rb | 2 | ||||
-rw-r--r-- | views/debug.haml | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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 <strong>learning rate:</strong> #{data["learning_rate"]} %p <strong>learning rate (sparse):</strong> #{data["learning_rate_sparse"]} %p <strong>duration:</strong> #{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") |