summaryrefslogtreecommitdiff
path: root/per_sentence_ter
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_ter
parente137509a77e3a8c12af32852ebba893dacb53f85 (diff)
undo unfortunate variable naming: cfg -> conf!
Diffstat (limited to 'per_sentence_ter')
-rwxr-xr-xper_sentence_ter6
1 files changed, 3 insertions, 3 deletions
diff --git a/per_sentence_ter b/per_sentence_ter
index 343708e..fa283ef 100755
--- a/per_sentence_ter
+++ b/per_sentence_ter
@@ -5,14 +5,14 @@ require 'trollop'
require 'tempfile'
def main
- cfg = Trollop::options do
+ conf = Trollop::options do
opt :input, "input", :type => :string, :default => '-'
opt :references, "references", :type => :string, :required => true
opt :mteval_bin, "cdec's mteval/fast_score", :type => :string, :default => '`/toolbox/cdec-dtrain/mteval/fast_score'
end
- refs = ReadFile.readlines_strip cfg[:references]
- input = ReadFile.new cfg[:input]
+ refs = ReadFile.readlines_strip conf[:references]
+ input = ReadFile.new conf[:input]
i = -1
while line = input.gets
line.strip!