Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 571 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 571 Bytes

continuous-bag-of-words(CBOW)-pytorch

This is one of the implementation of CBOW model in pytorch lib. CBOW is used for learning the word(getting the word probability) by looking at the context. A single window was define for words context learnig. One of the objectives of CBOW model is to find two words similirity. Nowadays CBOW is frequently used in many NLP deep learning task.

RUN

python3 cbow_model_pytorch.py 

it will verbose all training loss. test_cbow function used to show the two words similarity after learning the corpus context.