summaryrefslogtreecommitdiff
path: root/kbest_bleu_oracles
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-02-16 00:12:32 +0100
committerPatrick Simianer <p@simianer.de>2014-02-16 00:12:32 +0100
commit81a637ae52d2a1d0bc751b44c193765cdc1091f1 (patch)
tree19708fb523ef32cbeccc4d87133f115650e13280 /kbest_bleu_oracles
parent99ae15932eae7e727b74f723107cf42aad80ba3f (diff)
nlp_ruby 0.3
Diffstat (limited to 'kbest_bleu_oracles')
-rwxr-xr-xkbest_bleu_oracles2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbest_bleu_oracles b/kbest_bleu_oracles
index 1a41019..adc695e 100755
--- a/kbest_bleu_oracles
+++ b/kbest_bleu_oracles
@@ -23,7 +23,7 @@ def main
debug = cfg[:debug]
n = cfg[:n]
kbest_lists = read_kbest_lists cfg[:kbest_lists]
- references = ReadFile.new(cfg[:references]).readlines_strip
+ references = ReadFile.readlines_strip cfg[:references]
context = get_context kbest_lists, references, n
kbest_lists.each_with_index { |kbest,j|
scores = []