diff embeddings/process.py @ 533:de974b4fc4ea

Bugfix in pylearn.embeddings.length()
author Joseph Turian <turian@gmail.com>
date Tue, 18 Nov 2008 03:25:54 -0500
parents 34ee3aff3e8f
children eaa5ad4089a1
line wrap: on
line diff
--- a/embeddings/process.py	Tue Nov 18 02:57:50 2008 -0500
+++ b/embeddings/process.py	Tue Nov 18 03:25:54 2008 -0500
@@ -15,7 +15,7 @@
     """
     @return: The length of embeddings
     """
-    len(__word_to_embedding[0])
+    len(__word_to_embedding[__words[0]])
 
 def word_to_embedding(w):
     read_embeddings()