homebrew-core/Formula/stanford-parser.rb
Jacob Zimmerman a3c7a2118a stanford-parser: fix java dependency
Closes #225.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-11 17:16:00 -04:00

20 lines
532 B
Ruby

class StanfordParser < Formula
desc "Statistical NLP parser"
homepage "http://nlp.stanford.edu/software/lex-parser.shtml"
url "http://nlp.stanford.edu/software/stanford-parser-full-2015-04-20.zip"
version "3.5.2"
sha256 "05bd11e500219bbbffa4bae004619560bc03f1481f9516c4bb51863e265333b8"
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