From 93b754cc9352f6df6e525a6457b3e3c4434d9b43 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 29 Oct 2015 17:44:01 +0100 Subject: lowercase.perl support --- util/wrapper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util') 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 -- cgit v1.2.3