mirror of
https://github.com/marian-nmt/marian.git
synced 2024-12-11 22:17:27 +03:00
9 lines
175 B
Python
9 lines
175 B
Python
import sys
|
|
import cPickle
|
|
import operator
|
|
|
|
d = cPickle.load(open(sys.argv[1], 'r'))
|
|
sorted_d = sorted(d.items(), key=operator.itemgetter(1))
|
|
for p in sorted_d:
|
|
print p[0]
|