From 8151031373c08ccd714a99f50783eafcb54d2010 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 10 Jun 2015 14:48:34 +0200 Subject: undo unfortunate variable naming: cfg -> conf! --- per_sentence_bleu_kbest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'per_sentence_bleu_kbest') diff --git a/per_sentence_bleu_kbest b/per_sentence_bleu_kbest index e6a31cb..f8bd860 100755 --- a/per_sentence_bleu_kbest +++ b/per_sentence_bleu_kbest @@ -4,12 +4,12 @@ require 'zipf' require 'trollop' def main - cfg = Trollop::options do + conf = Trollop::options do opt :kbests, "kbests", :type => :string, :default => '-' opt :references, "references", :type => :string, :required => true end - refs = ReadFile.new cfg[:references] - kbest_lists = read_kbest_lists cfg[:kbests] + refs = ReadFile.new conf[:references] + kbest_lists = read_kbest_lists conf[:kbests] i = 0 kbest_lists.each { |list| scores = [] -- cgit v1.2.3