NLP Assignment
NLP Assignment
With a context window size of 2, the target words and their corresponding context windows
are:
The Skip-gram model predicts context words given a target word. The steps are:
For example, with a window size of 2, the Skip-gram model generates pairs like:
2. GloVe Model
- Uses a word co-occurrence matrix instead of predicting context words.
- Trained using a global co-occurrence matrix.
- Factorizes the matrix to capture word relationships.
- Requires a large corpus for effective training.