17 lines
580 B
Ruby
17 lines
580 B
Ruby
class ApacheOpennlp < Formula
|
|
desc "Machine learning toolkit for processing natural language text"
|
|
homepage "https://opennlp.apache.org/"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=opennlp/opennlp-1.9.1/apache-opennlp-1.9.1-bin.tar.gz"
|
|
sha256 "ce636b08c876b4f528003260e1ca2c647ef2a2d7faa4ea0ff7b85b5b5eaf22da"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
bin.write_exec_script libexec/"bin/opennlp"
|
|
end
|
|
|
|
test do
|
|
assert_equal "Hello , friends", pipe_output("#{bin}/opennlp SimpleTokenizer", "Hello, friends").lines.first.chomp
|
|
end
|
|
end
|