2014-02-02 23:36:29 +00:00
|
|
|
class ApacheOpennlp < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Machine learning toolkit for processing natural language text"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://opennlp.apache.org/"
|
2015-08-06 17:33:50 +00:00
|
|
|
url "https://www.apache.org/dyn/closer.cgi?path=opennlp/opennlp-1.6.0/apache-opennlp-1.6.0-bin.tar.gz"
|
|
|
|
mirror "https://www.us.apache.org/dist/opennlp/opennlp-1.6.0/apache-opennlp-1.6.0-bin.tar.gz"
|
|
|
|
sha256 "417ca3d4e535fa69238ab0eb657a0b471da821218d078de959967b31748d99e6"
|
2014-02-02 23:36:29 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
prefix.install_metafiles
|
2015-08-03 12:55:31 +00:00
|
|
|
libexec.install Dir["*"]
|
2014-02-02 23:36:29 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
bin.write_exec_script libexec/"bin/opennlp"
|
2014-02-02 23:36:29 +00:00
|
|
|
end
|
2015-08-06 17:33:50 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "Hello , friends", pipe_output("#{bin}/opennlp SimpleTokenizer", "Hello, friends").chomp
|
|
|
|
end
|
2014-02-02 23:36:29 +00:00
|
|
|
end
|