Skip to content

Instantly share code, notes, and snippets.

@r
Created September 7, 2010 01:50
Show Gist options
  • Save r/567748 to your computer and use it in GitHub Desktop.
Save r/567748 to your computer and use it in GitHub Desktop.
register /home/raffi/appprofiler/commons-lang-2.5.jar;
register /home/raffi/appprofiler/scala-library.jar;
register /home/raffi/appprofiler/appprofiler_2.7.7-1.0.jar;
test_data = load 'test.tsv' as (first, second);
distances = foreach test_data {
distance = com.twitter.appprofiler.pig.piggybank.LevenshteinDistance(first, second);
generate distance, first, second;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment