summaryrefslogtreecommitdiff
path: root/views/debug.haml
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-07-15 12:17:47 +0200
committerPatrick Simianer <p@simianer.de>2016-07-15 12:17:47 +0200
commitd4263d1dc29fe46871caec9fde613bf40f3ed90c (patch)
tree301812e31228c8bd2397b0e65470ac1a9ea69309 /views/debug.haml
parent29ca42a8605ff29524ed287f384d5113f1ec30d7 (diff)
support for 'noloo' extraction and updatable lm; fixes
Diffstat (limited to 'views/debug.haml')
-rw-r--r--views/debug.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/debug.haml b/views/debug.haml
index 17f7f86..1ab22f7 100644
--- a/views/debug.haml
+++ b/views/debug.haml
@@ -148,6 +148,7 @@
%p <strong>Duration:</strong> #{data["durations"][progress]}ms
%p <strong>Keypresses:</strong> #{data["count_kbd"][progress]}
%p <strong>Clicks:</strong> #{data["count_click"][progress]}
+ %p <strong>Pass:</strong> #{pass}
%h3 Derivation
%p
@@ -169,7 +170,7 @@
/=#########################################################################
%h2#grammar Grammar
- %p <strong>Notes:</strong> In addition to dynamically adding each source/post-edit instance to the suffix array extractor, the system additionally uses the provided phrase alignments to extract new rules. The extraction follows the original Hiero grammar extraction, but using phrases instead of words and using only a single binary feature: 'NewRule=1'. Extracted rules that already exist in a grammar are annotated with an additional feature: 'KnownRules=1'. OOVs are avoided by asking the user for translations of unknown words prior to translation. These are added to the grammars as new rules ('OOVFix=1').
+ %p <strong>Notes:</strong> <strike>In addition to dynamically adding each source/post-edit instance to the suffix array extractor,</strike> the system additionally uses the provided phrase alignments to extract new rules. The extraction follows the original Hiero grammar extraction, but using phrases instead of words and using only a single binary feature: 'NewRule=1'. Extracted rules that already exist in a grammar are annotated with an additional feature: 'KnownRules=1'. OOVs are avoided by asking the user for translations of unknown words prior to translation. These are added to the grammars as new rules ('OOVFix=1').
%h3
New Rules
@@ -225,7 +226,7 @@
%th Rate
%tbody
- if pairwise_ranking_data["update_raw"]
- - raw_update = SparseVector.from_kv(pairwise_ranking_data["update_raw"])
+ - raw_update = SparseVector.new(pairwise_ranking_data["update_raw"])
- pairwise_ranking_data["weights_before"].default = 0
- pairwise_ranking_data["weights_after"].keys.each.sort { |a,b| a <=> b }.each do |k|
- diff = pairwise_ranking_data["weights_after"][k] - pairwise_ranking_data["weights_before"][k]