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.0/apache-opennlp-1.9.0-bin.tar.gz"
|
|
sha256 "f5632772c2bc871498102c566441d6fe1f1c6f852e63c1a95fdd94e5201134bd"
|
|
|
|
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
|