blob: 31f630e01a97ccc77f12db5fae6ce02f6ef0e980 (
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-2014-06-16.zip'
  sha1 'cde955fd17803e58b9bffd83983748ef57e7862d'
  version '3.4'
  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
 |