missing script
[opus.git] / training / txt2hdf5.py
1 #!/usr/bin/python
2
3 from __future__ import print_function
4
5 import numpy as np
6 import h5py
7 import sys
8
9 data = np.loadtxt(sys.argv[1], dtype='float32')
10 h5f = h5py.File(sys.argv[2], 'w');
11 h5f.create_dataset('data', data=data)
12 h5f.close()