How does word2vec handle the input word being in the context? If word2vec encounters the same word multiple times in the same window, what occurs?  Obviously it is meaningless to decrease the distance between the vectors for the input word and the target word.  But will the repetition strengthen the relationship between the repeated word and the context words?
We can look at the source for guidance.


  How does word2vec handle the input word being in the context?


It is skipped; for both the skip-gram and CBOW models.


  If word2vec encounters the same word multiple times in the same window, what occurs?


The relationship is strengthened.