How word2vec generates word vectors

Source: Internet
Author: User

Assume that each word corresponds to a word vector. Suppose:

1) similarity between two words is proportional to the product of the corresponding word vector. That is, $ sim (v_1, v_2) = v_1 \ cdot v_2 $. The dot multiplication principle;

2) multiple words $ v_1 ~ A context consisting of v_n $ is represented by $ C $, where $ C = \ sum _ {I = 1} ^ {n} v_ I $. That is, the addition principle;

3) the probability of the word $ A $ appears in the context $ C $ is proportional to the Energy Factor $ e ^ {-E (A, C )}, where E =-A \ cdot C $. That is, the energy rule (see the scoring function in the heat system ).

Therefore:

\ [P (A | C) = \ frac {e ^ {-E (A, C )}} {\ sum _ {I = 1} ^ Ve ^ {-E (v_ I, C )}} =\ frac {e ^ {A \ cdot C }}{\ sum _ {I = 1} ^ Ve ^ {v_ I \ cdot C }}\]

$ V $ indicates the entire vocabulary space.

 

How word2vec generates word vectors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.