| 1 |
A = load 'mobydick.txt'; |
| 2 |
B = foreach A generate flatten(TOKENIZE((chararray)$0)) as word; |
| 3 |
C = filter B by word matches '\\w+'; |
| 4 |
D = group C by word; |
| 5 |
E = foreach D generate COUNT(C) as count, group as word; |
| 6 |
F = order E by count desc; |
| 7 |
-- one comment |
| 8 |
/* another comment */ |
| 9 |
dump F; |