blob: 562a6c96a7daafdf9f333c09d829f66a00573d62 (
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-01-04.zip'
  sha1 'ea9fc165c7388b351445711b528511d653c182fe'
  version '3.3.1'
  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
  |