Mercurial > pylearn
view embeddings/convert.py @ 475:11e0357f06f4
typo in MNIST.train_valid_test
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Thu, 23 Oct 2008 18:06:21 -0400 |
parents | a07948f780b9 |
children |
line wrap: on
line source
#!/usr/bin/python """ Convert stdin sentences to word embeddings, and output YAML. """ import sys, string import read import yaml output = [] for l in sys.stdin: l = string.strip(l) output.append((l, read.convert_string(l))) print yaml.dump(output)