# HG changeset patch # User Joseph Turian # Date 1226998177 18000 # Node ID eaa5ad4089a189b1470dab5042f91029bab9e07d # Parent de974b4fc4ea5dcdfd4e5ba9f27bbeac581ff9c2 Another bugfix in pylearn.embeddings.length() diff -r de974b4fc4ea -r eaa5ad4089a1 embeddings/process.py --- 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()