blob: 44e2607e4458a26252d8c8b054b6dd94aa1d2ef8 [file] [log] [blame]
icetindil82838a22013-10-11 16:41:18 -07001#!/bin/bash
Ian Maxon928bbd12015-09-14 17:12:48 -07002# 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
icetindil82838a22013-10-11 16:41:18 -07009#
Ian Maxon928bbd12015-09-14 17:12:48 -070010# http://www.apache.org/licenses/LICENSE-2.0
icetindil82838a22013-10-11 16:41:18 -070011#
Ian Maxon928bbd12015-09-14 17:12:48 -070012# 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
icetindil82838a22013-10-11 16:41:18 -070019
20DATA="/home/rares/data/fuzzyjoin/dblp/records-024"
21FUZZYJOIN="/home/rares/fuzzyjoin/fuzzyjoin-core/target/fuzzyjoin-core-0.0.2-SNAPSHOT.jar"
22
23echo "-- - Step 0: Project and append length - --"
24
Ian Maxonf18bba22015-08-21 12:35:14 -070025# java -cp $FUZZYJOIN org.apache.fuzzyjoin.FuzzyJoinAppendLength $DATA/part-00000 $DATA/part-00000-len
icetindil82838a22013-10-11 16:41:18 -070026
27date
28
29echo "== START =="
30
31echo "-- - Step 1: Sort by length - --"
32
33# time sort -n -k 5 -t ":" $DATA/part-00000-len > $DATA/part-00000-len-sorted
34
35echo "-- - Step 2: Tokenize - --"
36
Ian Maxonf18bba22015-08-21 12:35:14 -070037# time java -cp $FUZZYJOIN org.apache.fuzzyjoin.FuzzyJoinTokenize $DATA/part-00000-len-sorted $DATA/part-00000-tokens $DATA/part-00000-tokenized
icetindil82838a22013-10-11 16:41:18 -070038
39echo "-- - Step 3: RID pairs - --"
40
Ian Maxonf18bba22015-08-21 12:35:14 -070041time java -Xmx8g -cp $FUZZYJOIN org.apache.fuzzyjoin.FuzzyJoinMemory .8 $DATA/part-00000-tokenized > $DATA/part-00000-ridpairs
icetindil82838a22013-10-11 16:41:18 -070042
43echo "== END =="
44
45date
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