marian/scripts/pkl2json.py

8 lines
142 B
Python
Raw Normal View History

2016-04-18 17:55:25 +03:00
#!/usr/bin/env python
2016-04-14 14:44:55 +03:00
import sys
import cPickle
2016-05-01 17:07:54 +03:00
import json
2016-04-14 14:44:55 +03:00
import operator
d = cPickle.load(open(sys.argv[1], 'r'))
2016-05-01 17:07:54 +03:00
json.dump(d, sys.stdout)