Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pkl2yaml.py « scripts - github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0070566edc1c5accb92d29951b6511f2e903870a (plain)
1
2
3
4
5
6
7
8
9
#!/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)