Skip to content

Commit e9f0765

Browse files
authored
Merge pull request stanfordnlp#86 from JungeAlexander/master
Fix misleading comment regarding normalization of vectors
2 parents b939eb4 + e90e206 commit e9f0765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eval/python/evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def main():
2626
continue
2727
W[vocab[word], :] = v
2828

29-
# normalize each word vector to unit variance
29+
# normalize each word vector to unit length
3030
W_norm = np.zeros(W.shape)
3131
d = (np.sum(W ** 2, 1) ** (0.5))
3232
W_norm = (W.T / d).T

0 commit comments

Comments
 (0)