Skip to content

easytoday/NLP_big_window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Don Quichotte

Prepare your environment with conda

conda env create -f TAL.yml -n TAL

Activate the environment

conda activate TAL

Glove

Create the vocabulary (once for all)

Create the vocabulary python core/createdictionnary.py data/don_quichotte.txt

Train the glove model

Train the glove model python core/train_glove.py data/don_quichotte.txt data/vocab.json --dim 100 --epochs 10

Explore the results

Explore the results

  • Tests : python tests/test_glove.py
  • Visualization : python visualization/visualize_glove.py
  • Word neighbors: `python visualization/neighbors_glove.py

Word2vec

Create the vocabulary (once)

Create the vocabulary python core/createdictionnary.py data/don_quichotte.txt

Train the word2vec model

Train the word2vec model python core/train.py data/don_quichotte.txt data/vocab.json --dim 100 --epochs 10

Explore the results

  • Tests : python tests/test_mots.py
  • Visualization : python visualization/plot_embeddings.py
  • Word neighbors: python visualization/visualize_neighbors.py

About

diving into NLP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages