forked from mark-watson/Java-AI-Book-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
17 lines (16 loc) · 841 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clean:
rm -r -f out
(cd clojure_examples; lein clean; rm -r -f lib/* classes)
mapreduce_example:
rm -r -f mr_temp
mkdir -p mr_temp/nlp/com/knowledgebooks/mapreduce
mkdir -p mr_temp/nlp/com/knowledgebooks/nlp/util
cp src/nlp/com/knowledgebooks/mapreduce/NameFinder.java mr_temp/nlp/com/knowledgebooks/mapreduce/
cp src/nlp/com/knowledgebooks/nlp/util/ScoredList.java mr_temp/nlp/com/knowledgebooks/nlp/util/
cp src/nlp/com/knowledgebooks/nlp/util/Tokenizer.java mr_temp/nlp/com/knowledgebooks/nlp/util/
cp src/nlp/com/knowledgebooks/nlp/ExtractNames.java mr_temp/nlp/com/knowledgebooks/nlp/
mkdir -p mr_temp/test_data
cp test_data/propername.ser mr_temp/test_data/
(cd mr_temp; jar xvf ../lib/hadoop-core-1.1.2.jar)
(cd mr_temp; javac nlp/com/knowledgebooks/mapreduce/NameFinder.java)
(cd mr_temp; jar cvf ../namefinder.jar .)