homebrew-core/Formula/stanford-parser.rb

18 lines
439 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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['*']
2012-08-07 18:20:52 +00:00
bin.write_exec_script Dir["#{libexec}/*.sh"]
end
def test
2012-02-10 06:15:51 +00:00
system "#{bin}/lexparser.sh", "#{libexec}/data/testsent.txt"
end
end