summaryrefslogtreecommitdiff
path: root/per_sentence_bleu_kbest
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-06-10 14:48:34 +0200
committerPatrick Simianer <p@simianer.de>2015-06-10 14:48:34 +0200
commit8151031373c08ccd714a99f50783eafcb54d2010 (patch)
tree1bcf6e78392978f4ae972a5dcc936a4c266f3d78 /per_sentence_bleu_kbest
parente137509a77e3a8c12af32852ebba893dacb53f85 (diff)
undo unfortunate variable naming: cfg -> conf!
Diffstat (limited to 'per_sentence_bleu_kbest')
-rwxr-xr-xper_sentence_bleu_kbest6
1 files changed, 3 insertions, 3 deletions
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 = []