Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SGNS results #7

Open
Alaa-Ebshihy opened this issue Jan 10, 2018 · 0 comments
Open

SGNS results #7

Alaa-Ebshihy opened this issue Jan 10, 2018 · 0 comments

Comments

@Alaa-Ebshihy
Copy link

Hi,

I have a problem in re-generating SGNS embeddings on google ngram corpus

I follow these steps:

  1. use histwords/googlengram/pullscripts/posgrab.py to generate counts for 1-gram
  2. use histwords/googlengram/pullscripts/downloadandsplit.py then histwords/googlengram/pullscripts/gramgrab.py (set context to 4)
  3. use histwords/googlengram/pullscripts/runmerge.py on the output from 2 and then histwords/googlengram/pullscripts/indexmerge.py
  4. use histwords/googlengram/freqperyear.py on the output of 3
  5. use histwords/googlengram/makedecades.py on the output of 3
  6. use histwords/sgns/makecorpus.py py passing the output of 1, 4 and 5
  7. train embeddings using histwords/sgns/runword2vec.py (using --sequential option)
  8. use histwords/sgns/postprocessingsgns.py on the trained data.

My problem is that the vectors generated is not the same as pre-trained vectors on http://snap.stanford.edu/historical_embeddings/eng-all_sgns.zip. The size of vocabulary is about 50000 while yours 100000

So, my question are there wrong in the steps I follow? or can you help me with any info why this happens

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant