homebrew-core/Formula/stanford-parser.rb
Caleb Xu 75937dc178 stanford-parser 3.9.2
Closes #41975.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-07-15 11:30:19 +02:00

20 lines
534 B
Ruby

class StanfordParser < Formula
desc "Statistical NLP parser"
homepage "https://nlp.stanford.edu/software/lex-parser.shtml"
url "https://nlp.stanford.edu/software/stanford-parser-full-2018-10-17.zip"
version "3.9.2"
sha256 "92d852af54c0727c2367b9ce267c53bf08f1551a08ec5dd92c357b8cc7b2bcd9"
bottle :unneeded
depends_on :java => "1.8+"
def install
libexec.install Dir["*"]
bin.write_exec_script Dir["#{libexec}/*.sh"]
end
test do
system "#{bin}/lexparser.sh", "#{libexec}/data/testsent.txt"
end
end