Mercurial > pylearn
view sandbox/embeddings/convert.py @ 456:131e19dfe793
Added sandbox.embeddings
author | Joseph Turian <turian@iro.umontreal.ca> |
---|---|
date | Tue, 07 Oct 2008 17:56:52 -0400 |
parents | |
children | ed6b0b3be8d2 |
line wrap: on
line source
#!/usr/bin/python import sys, string import original import yaml output = [] for l in sys.stdin: l = string.strip(l) output.append((l, original.convert_string(l))) print yaml.dump(output)