comparison 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
comparison
equal deleted inserted replaced
455:fb62f0e4bcfe 456:131e19dfe793
1 #!/usr/bin/python
2
3 import sys, string
4 import original
5 import yaml
6
7 output = []
8 for l in sys.stdin:
9 l = string.strip(l)
10 output.append((l, original.convert_string(l)))
11
12 print yaml.dump(output)