This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Made test of three word comparison algorithms: | |
| * JaroWinkler, SmithWatermanGotoh and Soundex | |
| * | |
| * Based on test result Soundex is chosen to be used in venue title merging algorithm | |
| * It is more usable, so that I can say if similarity > 0.98 then is same word | |
| */ | |
| void testMergeAlgorithms() { | |
| def cafeName1 = "Antonio Cafe" | |
| def cafeName2 = "Antonio's Cafe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import uk.ac.shef.wit.simmetrics.similaritymetrics.Soundex | |
| boolean isSamePlace = false | |
| Soundex soundexAlgorithm = new Soundex() | |
| if(distanceBetweenVenues(place1, place2) < 200 && soundexAlgorithm.getSimilarity(placeName1, placeName2) > 0.98) { | |
| isSamePlace = true | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dojo.forEach(dojo.query('[id*=del-campaign]'), function(single) { | |
| dojo.attr(single, "checked", true); | |
| }); |
OlderNewer