marian/scripts/pkl2json.py
2016-05-01 16:07:54 +02:00

8 lines
142 B
Python

#!/usr/bin/env python
import sys
import cPickle
import json
import operator
d = cPickle.load(open(sys.argv[1], 'r'))
json.dump(d, sys.stdout)