comparison sandbox/embeddings/process.py @ 464:121cc6db4481

More debug output
author Joseph Turian <turian@iro.umontreal.ca>
date Wed, 15 Oct 2008 17:00:26 -0400
parents 1243716ade6a
children f3711bcc467e
comparison
equal deleted inserted replaced
463:8df9179b3239 464:121cc6db4481
38 for i in range(NUMBER_OF_WORDS): 38 for i in range(NUMBER_OF_WORDS):
39 l = vals[DIMENSIONS*i:DIMENSIONS*(i+1)] 39 l = vals[DIMENSIONS*i:DIMENSIONS*(i+1)]
40 w = __words[i] 40 w = __words[i]
41 __word_to_embedding[w] = l 41 __word_to_embedding[w] = l
42 __read = True 42 __read = True
43 sys.stderr.write("...done reading %s\n" % WEIGHTSFILE)
43 44
44 import re 45 import re
45 numberre = re.compile("[0-9]") 46 numberre = re.compile("[0-9]")
46 slashre = re.compile("\\\/") 47 slashre = re.compile("\\\/")
47 48