homebrew-core/Formula/stanford-parser.rb
2012-10-27 19:28:49 -07:00

17 lines
439 B
Ruby

require 'formula'
class StanfordParser < Formula
homepage 'http://nlp.stanford.edu/software/lex-parser.shtml'
url 'http://nlp.stanford.edu/software/stanford-parser-2012-07-09.tgz'
sha1 '1d67ec99f473b59600e5698083ce518ada4dd1b2'
version '2.0.3'
def install
libexec.install Dir['*']
bin.write_exec_script Dir["#{libexec}/*.sh"]
end
def test
system "#{bin}/lexparser.sh", "#{libexec}/data/testsent.txt"
end
end