Sha256: abd92ec9d493b4f0210997327dcee1574cf1d4dfd53ba4248a719de17993b45c
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
file 'tmp/stanford.zip' do |task| sh "wget #{STANFORD_ARCHIVE_URL} -O #{task.name} --no-check-certificate --quiet" end directory 'tmp/stanford' => ['tmp/stanford.zip'] do |task| orig_dirname = File.basename(STANFORD_ARCHIVE, '.zip') sh "unzip #{task.prerequisites[0]}" sh "mv #{orig_dirname} #{task.name}" end desc 'Installs the Stanford parser' task :stanford => ['tmp/stanford'] do Dir.chdir('tmp/stanford') do STANFORD_JAR_NAMES.each do |name| dest = File.join(STANFORD_DIRECTORY, name) sh "cp -f #{name} #{dest}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opener-constituent-parser-de-1.2.1 | task/stanford.rake |