2013proposed learning word embeddings using a predictive neural-network approach.
the skip-gram implementation with negative sampling mines word cooccurrences within a text window, and the network must learn to predict the surrounding context from the target word.