blob: 5f57a3ed922180fd267b1c7ed7aa9106bdaf0abd [file] [log] [blame]
alexander.behmc576c602012-07-06 02:41:15 +00001/*
2 * Description : Tests that the FuzzyEqRule rewrites ~= using Jaccard
3 * into edit-distance-check.
4 * Success : Yes
5 */
6
7drop dataverse test if exists;
8create dataverse test;
9use dataverse test;
10
11create type DBLPType as closed {
12 id: int32,
13 dblpid: string,
14 title: string,
15 authors: string,
16 misc: string
17}
18
ramangrover29669d8f62013-02-11 06:03:32 +000019create dataset DBLP(DBLPType) primary key id;
alexander.behmc576c602012-07-06 02:41:15 +000020
alexander.behmc576c602012-07-06 02:41:15 +000021write output to nc1:"rttest/similarity_fuzzyeq-to-jaccard-check.adm";
22
23set simfunction 'jaccard';
24set simthreshold '0.8f';
25
26// Tests two rules: FuzzyEqRule and SimilarityCheckRule
27for $paper in dataset('DBLP')
28where word-tokens($paper.title) ~= word-tokens("Transactions for Cooperative Environments")
29return $paper