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

several code changes during my test #130

Open
godlockin opened this issue Sep 22, 2021 · 0 comments
Open

several code changes during my test #130

godlockin opened this issue Sep 22, 2021 · 0 comments

Comments

@godlockin
Copy link

I did the following changes during my using this lib, but i'm not sure if bugs involved in my changes.

OS: Mac
Python: 3.8

steps:

  1. install
    changed requirements.txt from
psutil>=2.1.1
networkx>=2.0

into

psutil>=5.8.0
networkx>=2.6.3

to fix the dependencies analysis issue

  1. init env
    remove the line from gensim.models.word2vec import Vocab from skipgram.py (line 8)
    as the Vocab doesn't belong to the gensim.models.vord2vec any more, and it will cause a compile issue

  2. run the function
    migrate
    model = Word2Vec(walks, size=args.representation_size, window=args.window_size, min_count=0, sg=1, hs=1, workers=args.workers)
    into
    model = Word2Vec(walks, vector_size=args.representation_size, window=args.window_size, min_count=0, sg=1, hs=1, workers=args.workers)

as the param of size doesn't in word2vec.py, and I'm not sure if the representation_size is the vector_size as the description of api: vector_size : int, optional, Dimensionality of the word vectors.

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