The document discusses the CBOW and Skip-gram algorithms for training word2vec models. CBOW predicts the current word based on surrounding context words, while Skip-gram predicts surrounding words given the current word. Both algorithms use a hidden layer and softmax function to produce word embeddings, and backpropagate error to update the weights of the surrounding words. Training continues until the word embeddings accurately capture relationships between words based on their usage contexts.