diff options
author | pks <pks@users.noreply.github.com> | 2021-10-26 09:07:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 09:07:21 +0200 |
commit | 6bdea7c445ff7f4b5b2c28b1488a451785932716 (patch) | |
tree | 98c52251108fc6a3e39740c5e6846e6bbb0dd908 | |
parent | 8adea055298189643a3c7a76e2d529f536a94e11 (diff) | |
parent | 898b1239702cbf79b149a1072d15e63fc057b657 (diff) |
trollop -> optimist
-rwxr-xr-x | rk.rb | 2 | ||||
-rwxr-xr-x | stats.rb | 2 | ||||
-rw-r--r-- | util.rb | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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 @@ -1,5 +1,5 @@ require 'zipf' -require 'trollop' +require 'optimist' def read_stopwords_file fn stopwords = {} |