(no title)
qesa | 8 years ago
1#desc sum each group (!/) (" II";"\t") 0: `:tsvfile
Took about 3 seconds, 2.5 of which was reading the fileEDIT:
q)\ts d: (!/) (" II";"\t") 0: `:tsvfile
2489 134218576
q)\ts 1#desc sum each group d
486 253055104
gwu78|8 years ago
Regarding the 1gram file at https://storage.googleapis.com/books/ngrams/books/googlebook...
This is the result I got
using or No doubt I must be doing some things wrong.qesa|8 years ago
With the reverse thrown in to switch the key/value around we get the correct answer
or Works the same for the simple example