icetindil | 82838a2 | 2013-10-11 16:41:18 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Ian Maxon | 928bbd1 | 2015-09-14 17:12:48 -0700 | [diff] [blame] | 2 | # Licensed to the Apache Software Foundation (ASF) under one |
| 3 | # or more contributor license agreements. See the NOTICE file |
| 4 | # distributed with this work for additional information |
| 5 | # regarding copyright ownership. The ASF licenses this file |
| 6 | # to you under the Apache License, Version 2.0 (the |
| 7 | # "License"); you may not use this file except in compliance |
| 8 | # with the License. You may obtain a copy of the License at |
icetindil | 82838a2 | 2013-10-11 16:41:18 -0700 | [diff] [blame] | 9 | # |
Ian Maxon | 928bbd1 | 2015-09-14 17:12:48 -0700 | [diff] [blame] | 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
icetindil | 82838a2 | 2013-10-11 16:41:18 -0700 | [diff] [blame] | 11 | # |
Ian Maxon | 928bbd1 | 2015-09-14 17:12:48 -0700 | [diff] [blame] | 12 | # Unless required by applicable law or agreed to in writing, |
| 13 | # software distributed under the License is distributed on an |
| 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | # KIND, either express or implied. See the License for the |
| 16 | # specific language governing permissions and limitations |
| 17 | # under the License. |
| 18 | |
icetindil | 82838a2 | 2013-10-11 16:41:18 -0700 | [diff] [blame] | 19 | |
| 20 | DATA="/home/rares/data/fuzzyjoin/dblp/records-024" |
| 21 | FUZZYJOIN="/home/rares/fuzzyjoin/fuzzyjoin-core/target/fuzzyjoin-core-0.0.2-SNAPSHOT.jar" |
| 22 | |
| 23 | echo "-- - Step 0: Project and append length - --" |
| 24 | |
Ian Maxon | f18bba2 | 2015-08-21 12:35:14 -0700 | [diff] [blame] | 25 | # java -cp $FUZZYJOIN org.apache.fuzzyjoin.FuzzyJoinAppendLength $DATA/part-00000 $DATA/part-00000-len |
icetindil | 82838a2 | 2013-10-11 16:41:18 -0700 | [diff] [blame] | 26 | |
| 27 | date |
| 28 | |
| 29 | echo "== START ==" |
| 30 | |
| 31 | echo "-- - Step 1: Sort by length - --" |
| 32 | |
| 33 | # time sort -n -k 5 -t ":" $DATA/part-00000-len > $DATA/part-00000-len-sorted |
| 34 | |
| 35 | echo "-- - Step 2: Tokenize - --" |
| 36 | |
Ian Maxon | f18bba2 | 2015-08-21 12:35:14 -0700 | [diff] [blame] | 37 | # time java -cp $FUZZYJOIN org.apache.fuzzyjoin.FuzzyJoinTokenize $DATA/part-00000-len-sorted $DATA/part-00000-tokens $DATA/part-00000-tokenized |
icetindil | 82838a2 | 2013-10-11 16:41:18 -0700 | [diff] [blame] | 38 | |
| 39 | echo "-- - Step 3: RID pairs - --" |
| 40 | |
Ian Maxon | f18bba2 | 2015-08-21 12:35:14 -0700 | [diff] [blame] | 41 | time java -Xmx8g -cp $FUZZYJOIN org.apache.fuzzyjoin.FuzzyJoinMemory .8 $DATA/part-00000-tokenized > $DATA/part-00000-ridpairs |
icetindil | 82838a2 | 2013-10-11 16:41:18 -0700 | [diff] [blame] | 42 | |
| 43 | echo "== END ==" |
| 44 | |
| 45 | date |
| 46 | |
| 47 | |
| 48 | ### SSJoin ### |
| 49 | # cut -d ":" -f 3,4 records-000/part-0000* > ! ssjoin.raw-000/part-00000 |
| 50 | # ~/workspace/ssjoin-bin/txtformat ssjoin.raw-000/part-00000 ssjoin.norm-000/part-00000 l |
| 51 | # sed 's/_\+/ /g' ssjoin.norm-000/part-00000 > ! ssjoin.space-000/part-00000 |
| 52 | # ~/workspace/ssjoin-bin/tokenizer ssjoin.space-000/part-00000 |
| 53 | # ~/workspace/ssjoin-bin/ppjoinplus j .8 ssjoin.space-000/part-00000.bin > /dev/null |
| 54 | # java -jar /fuzzyjoin/fuzzyjoin-core/target/fuzzyjoin-core-0.0.2-SNAPSHOT.jar .8 ssjoin.space-000/part-00000.bin > /dev/null |