diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sandbox/embeddings/convert.py	Tue Oct 07 17:56:52 2008 -0400
@@ -0,0 +1,12 @@
+#!/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)