-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
executable file
·35 lines (29 loc) · 1.08 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
here=File.dirname(__FILE__)
$tklib_home=File.expand_path("#{here}")
require "#{here}/rakefile.rb"
task :setup do
mkdir_p($include_build_dir)
mkdir_p($python_build_dir)
mkdir_p($jar_build_dir)
mkdir_p($data_home)
end
task :default => [:setup, :build_carmen, :build]
task :build_carmen do
carmen = "#{here}/nlp/3rdParty/carmen/carmen"
sh "cd #{carmen}/src/ && echo -e 'Y\nY\nY\n\n\n8\n' | ./configure -noWerror"
sh "cd #{carmen}/src && make ECHO=echo"
sh "cd #{carmen}/src/python && make all ECHO=echo"
end
task :build do
sh "cd nlp/3rdParty/crf++ && rake setup"
sh "cd nlp/3rdParty/orange && rake setup"
sh "cd pytools/gsl_utilities && make"
sh "cd pytools/spatial_features && make"
sh "cd cutilities && rake build"
sh "cd data/flickr && bunzip2 -k flickr_cache.pck.bz2"
sh "cd nlp/c_src && make"
sh "echo \"import nltk; nltk.download('wordnet')\" | rake python"
sh "echo \"import nltk; nltk.download('punkt')\" | rake python"
sh "echo \"import nltk; nltk.download('brown')\" | rake python"
sh "echo \"import nltk; nltk.download('conll2000')\" | rake python"
end