changeset 534:eaa5ad4089a1

Another bugfix in pylearn.embeddings.length()
author Joseph Turian <turian@gmail.com>
date Tue, 18 Nov 2008 03:49:37 -0500
parents de974b4fc4ea
children a6068dedfbd6
files embeddings/process.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/embeddings/process.py	Tue Nov 18 03:25:54 2008 -0500
+++ b/embeddings/process.py	Tue Nov 18 03:49:37 2008 -0500
@@ -15,7 +15,7 @@
     """
     @return: The length of embeddings
     """
-    len(__word_to_embedding[__words[0]])
+    return len(__word_to_embedding[__words[0]])
 
 def word_to_embedding(w):
     read_embeddings()