diff options
author | Patrick Simianer <p@simianer.de> | 2015-10-29 17:44:01 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-10-29 17:44:01 +0100 |
commit | 93b754cc9352f6df6e525a6457b3e3c4434d9b43 (patch) | |
tree | 30390fa61e5233a5f40cc27643745bf88a016a15 /util | |
parent | b266854348411cf5420f4347866821a7e7613887 (diff) |
lowercase.perl support
Diffstat (limited to 'util')
-rwxr-xr-x | util/wrapper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/wrapper.rb b/util/wrapper.rb index d18dd39..b760333 100755 --- a/util/wrapper.rb +++ b/util/wrapper.rb @@ -5,7 +5,7 @@ require 'open3' require 'trollop' conf = Trollop::options do - opt :action, "tokenize, detokenize or truecase", :short => "-a", :type => :string, :required => true + opt :action, "tokenize, detokenize, truecase, or lowercase", :short => "-a", :type => :string, :required => true opt :addr, "socket address", :short => "-S", :type => :string, :required => true opt :ext, "path to externals", :short => "-e", :type => :string, :required => true opt :lang, "language", :short => "-l", :type => :string @@ -31,6 +31,8 @@ elsif conf[:action] == "truecase" if !conf[:truecase_model] STDERR.write "[truecaser] No model given for truecaser, exiting!\n"; exit end +elsif conf[:action] == "lowercase" + cmd = "#{conf[:ext]}/lowercase.perl" else STDERR.write "[wrapper] Unknown action #{conf[:action]}, exiting!\n"; exit end |