Skip to content

Word Embeddings built by doing singular value decomposition on Co-Occurrence matrix

Notifications You must be signed in to change notification settings

advaithmall/SVD_Word_Embeddings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SVD_Word_Embeddings

Word Embeddings built by doing singular value decomposition on Co-Occurrence matrix

Directory Structory

.
├── eval.py
├── main.py
├── svd_images
│   ├── an.png
│   ├── awesome.png
│   ├── crucial.png
│   ├── father.png
│   ├── study.png
│   ├── thinking.png
│   └── titanic.png
├── U.pickle
└── word2idx.pickle

1 directory, 11 files

In svd folder, download: U.pickle, word2idx.pickle

To run code related to SVD, first:

cd svd

to look at plot images presented in report:

cd svd_images

To create embeddings, run:


python3 -W ignore main.py

To get the 10 closest words to a given word and to plot them, run:


python3 -W ignore eval.py

enter word upon prompt

About

Word Embeddings built by doing singular value decomposition on Co-Occurrence matrix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages