aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
Diffstat (limited to 'lualib')
-rw-r--r--lualib/rescore_utility.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/lualib/rescore_utility.lua b/lualib/rescore_utility.lua
index 268e814d8..39ad63365 100644
--- a/lualib/rescore_utility.lua
+++ b/lualib/rescore_utility.lua
@@ -78,13 +78,13 @@ function utility.get_all_logs(dirs)
end
function utility.get_all_symbol_scores(conf, ignore_symbols)
- local counters = conf:get_symbols_counters()
+ local symbols = conf:get_symbols_scores()
- return fun.tomap(fun.map(function(elt)
- return elt['symbol'],elt['weight']
- end, fun.filter(function(elt)
- return not ignore_symbols[elt['symbol']]
- end, counters)))
+ return fun.tomap(fun.map(function(name, elt)
+ return name,elt['score']
+ end, fun.filter(function(name, elt)
+ return not ignore_symbols[name]
+ end, symbols)))
end
function utility.generate_statistics_from_logs(logs, threshold)