homebrew-core/Formula/apache-opennlp.rb
Thierry Moisan dd1bf55cee apache-opennlp 1.9.2
Closes #48749.

Signed-off-by: Alexander Bayandin <a.bayandin@gmail.com>
2020-01-08 12:12:10 +00:00

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.2/apache-opennlp-1.9.2-bin.tar.gz"
sha256 "26b55416a6c330e9c91bf9ad31183f3ed3104643b3d74ad2ee6e16b0c0e44f3b"
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