blob: 4ea1e2d67a5b8fcaaa5e8d8a2fdbfcb55ad720be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require 'formula'
class StanfordParser < Formula
homepage 'http://nlp.stanford.edu/software/lex-parser.shtml'
url 'http://nlp.stanford.edu/software/stanford-parser-full-2013-06-20.zip'
sha1 'd22f3350b608e905e432b9278a5fa85c380cac30'
version '3.2.0'
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
|