From 898b1239702cbf79b149a1072d15e63fc057b657 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 3 Sep 2019 13:29:47 +0200 Subject: trollop -> optimist --- rk.rb | 2 +- stats.rb | 2 +- util.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rk.rb b/rk.rb index ccbe90b..741a3e9 100755 --- a/rk.rb +++ b/rk.rb @@ -67,7 +67,7 @@ def rk references, end def main - config = Trollop::options do + config = Optimist::options do opt :input, "File with hypotheses, truecased and tokenized", :type => :string, :short => "-i", :default => '-' opt :references, "File with references, truecased and tokenized", :type => :string, :short => "-r", :required => true opt :stopwords, "File with stopwords, one per line", :type => :string, :short => "-s", :required => true diff --git a/stats.rb b/stats.rb index 390cbd9..36a9ae1 100755 --- a/stats.rb +++ b/stats.rb @@ -24,7 +24,7 @@ def stats references, stopwords end def main - config = Trollop::options do + config = Optimist::options do opt :references, "File with references, truecased and tokenized", :type => :string, :short => "-r", :required => true opt :stopwords, "File with stopwords, one per line", :type => :string, :short => "-s", :required => true end diff --git a/util.rb b/util.rb index d04f823..2111780 100644 --- a/util.rb +++ b/util.rb @@ -1,5 +1,5 @@ require 'zipf' -require 'trollop' +require 'optimist' def read_stopwords_file fn stopwords = {} -- cgit v1.2.3