Giter Club home page Giter Club logo

Comments (13)

doralune avatar doralune commented on July 28, 2024 2

I fix

https://github.com/Jacobe2169/GMatch4py/blob/aec78a2ca76f4098d867dc30384ce843e7cf027a/gmatch4py/embedding/deepwalk.pyx#L31

to

from .skipgram import Skipgram

then reinstall and it works !!

from gmatch4py.

doralune avatar doralune commented on July 28, 2024 2

Hi @kodama-codes
The error came from that the latest gensim library no longer has Vocab.
I downgraded to gensim==3.8.3 and then it worked.

from gmatch4py.

chilligerchief avatar chilligerchief commented on July 28, 2024 2

Hello all, I took the time to make a fork of this library and remove all code that is not related to graph edit distance and cleaned it up, so it has no legacy dependencies.
If you want to use only graph edit distances and no other features feel free to use my fork. It should easier to maintain, since it has much less dependencies.
Check it out at https://github.com/chilligerchief/GED4py

from gmatch4py.

jacquesfize avatar jacquesfize commented on July 28, 2024 1

Hi all !

Sorry for being silent for many years...I've been busy and did not have much time for GMatch4py. Thanks to you all for helping peoples in need when it comes to make GMatch4py work !

I push few modifications that integrates solutions proposed in this feed.

Bests,
Jacques

from gmatch4py.

JeanKaddour avatar JeanKaddour commented on July 28, 2024

Same here, but I commented this import out since I'm only interested in GED and that worked.

from gmatch4py.

kodama-codes avatar kodama-codes commented on July 28, 2024

Also the same here. Tested on Windows and Linux.

from gmatch4py.

kodama-codes avatar kodama-codes commented on July 28, 2024

Ahoi @doralune

I still get an error when i run the code

File "...\venv\lib\site-packages\gmatch4py\__init__.py", line 15, in <module> from .embedding.deepwalk import * File "gmatch4py\embedding\deepwalk.pyx", line 31, in init gmatch4py.embedding.deepwalk File "gmatch4py\embedding\skipgram.pyx", line 8, in init gmatch4py.embedding.skipgram ImportError: cannot import name Vocab

from gmatch4py.

kodama-codes avatar kodama-codes commented on July 28, 2024

Ahoi @doralune

Perfect, now it workes like a charm. Thx alot!

from gmatch4py.

chilligerchief avatar chilligerchief commented on July 28, 2024

gensim 3.8.3 can not easily be installed on newer systems. Modern gcc won't compile it. Please don't expect me to downgrade gcc as well^^. Any easy way to fix this, or is this library dead?

from gmatch4py.

Anmario avatar Anmario commented on July 28, 2024

I fix

https://github.com/Jacobe2169/GMatch4py/blob/aec78a2ca76f4098d867dc30384ce843e7cf027a/gmatch4py/embedding/deepwalk.pyx#L31

to

from .skipgram import Skipgram

then reinstall and it works !!

I did that, but still having the very first Error, with (ModuleNotFoundError: No module named 'skipgram')

Starting to lose faith
Please Help!

from gmatch4py.

doralune avatar doralune commented on July 28, 2024

@Anmario It should be different error after fixing something. Please give more details for reproducing the error.

from gmatch4py.

doralune avatar doralune commented on July 28, 2024

gensim 3.8.3 can not easily be installed on newer systems. Modern gcc won't compile it. Please don't expect me to downgrade gcc as well^^. Any easy way to fix this, or is this library dead?

GMatch4py is not updated for 3 years ? and still uses the old gensim, so we don't have much choice. For me, I use the docker container for running old stuff.

from gmatch4py.

Anmario avatar Anmario commented on July 28, 2024

@Anmario It should be different error after fixing something. Please give more details for reproducing the error.

That's logic, but I get in the both cases the same below.

:228: UserWarning: To obtain optimal results install the Cython 'munkres' module at https://github.com/jfrelinger/cython-munkres-wrapper

ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_27028/812984187.py in
1 import networkx as nx
----> 2 import gmatch4py as gm
3 1+1

~\anaconda3\lib\site-packages\gmatch4py_init_.py in
13 # Graph Embedding import
14 from .embedding.graph2vec import *
---> 15 from .embedding.deepwalk import *
16 from .embedding.node2vec import *
17 # Helpers import

gmatch4py\embedding\deepwalk.pyx in init gmatch4py.embedding.deepwalk()

ModuleNotFoundError: No module named 'skipgram'

from gmatch4py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.