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

9 lines
208 B
Python

#!/usr/bin/env python
import sys
import cPickle
import yaml
import operator
d = cPickle.load(open(sys.argv[1], 'r'))
yaml.safe_dump(d, sys.stdout,
default_flow_style=False, allow_unicode=True)