See Stanford slides as well: http://web.stanford.edu/class/cs276/handouts/lecture15-distributed-representations.pdf