Skip to content

Commit 0eec7fa

Browse files
authored
Merge pull request pytorch#448 from zhiqwang/master
Fix typo in word_embeddings_tutorial.py. Thanks Zhiqiang.
2 parents 3303f0d + dc0b2dc commit 0eec7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/nlp/word_embeddings_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
.. math::
9494
9595
\text{Similarity}(\text{physicist}, \text{mathematician}) = \frac{q_\text{physicist} \cdot q_\text{mathematician}}
96-
{\| q_\text{\physicist} \| \| q_\text{mathematician} \|} = \cos (\phi)
96+
{\| q_\text{physicist} \| \| q_\text{mathematician} \|} = \cos (\phi)
9797
9898
Where :math:`\phi` is the angle between the two vectors. That way,
9999
extremely similar words (words whose embeddings point in the same

0 commit comments

Comments
 (0)