2010-03-21 16:13:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class StanfordParser < Formula
|
2010-03-21 16:13:34 +00:00
|
|
|
homepage 'http://nlp.stanford.edu/software/lex-parser.shtml'
|
2012-07-10 06:11:54 +00:00
|
|
|
url 'http://nlp.stanford.edu/software/stanford-parser-2012-07-09.tgz'
|
2012-11-03 19:37:03 +00:00
|
|
|
sha1 'd63f50b992eb563f3ab303b103984e8b9864b5ed'
|
2012-07-10 06:11:54 +00:00
|
|
|
version '2.0.3'
|
2010-03-21 16:13:34 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir['*']
|
2012-08-07 18:20:52 +00:00
|
|
|
bin.write_exec_script Dir["#{libexec}/*.sh"]
|
2010-03-21 16:13:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-02-10 06:15:51 +00:00
|
|
|
system "#{bin}/lexparser.sh", "#{libexec}/data/testsent.txt"
|
2010-03-21 16:13:34 +00:00
|
|
|
end
|
|
|
|
end
|