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

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2016-05-01 17:07:54 +0300
committerMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2016-05-01 17:07:54 +0300
commitef5d9ff364c26cb085810023521d2f289789d75f (patch)
tree91e7416372097b02dc87a71e68079e5bc01322c6 /scripts/pkl2yaml.py
parent1d31867acf0808478cb3811f7af61d0011e58361 (diff)
xample configuration in README
Diffstat (limited to 'scripts/pkl2yaml.py')
-rw-r--r--scripts/pkl2yaml.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/pkl2yaml.py b/scripts/pkl2yaml.py
new file mode 100644
index 00000000..0070566e
--- /dev/null
+++ b/scripts/pkl2yaml.py
@@ -0,0 +1,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) \ No newline at end of file