diff sandbox/embeddings/convert.py @ 458:ed6b0b3be8d2

Polished embeddings module
author Joseph Turian <turian@iro.umontreal.ca>
date Tue, 07 Oct 2008 19:13:53 -0400
parents 131e19dfe793
children
line wrap: on
line diff
--- a/sandbox/embeddings/convert.py	Tue Oct 07 18:21:32 2008 -0400
+++ b/sandbox/embeddings/convert.py	Tue Oct 07 19:13:53 2008 -0400
@@ -1,12 +1,15 @@
 #!/usr/bin/python
+"""
+Convert stdin sentences to word embeddings, and output YAML.
+"""
 
 import sys, string
-import original
+import read
 import yaml
 
 output = []
 for l in sys.stdin:
     l = string.strip(l)
-    output.append((l, original.convert_string(l)))
+    output.append((l, read.convert_string(l)))
 
 print yaml.dump(output)