SkBlaz / rakun

Rank-based Unsupervised Keyword Extraction via Metavertex Aggregation
GNU General Public License v3.0
99 stars 23 forks source link

module 'gensim.models.fasttext' has no attribute 'load_facebook_vectors' #7

Closed Raidus closed 3 years ago

Raidus commented 3 years ago

Hi,

when using fasttext in google colab, I'll get the error module 'gensim.models.fasttext' has no attribute 'load_facebook_vectors'

Any idea?

SkBlaz commented 3 years ago

Hello, it seems like gensim's api has changed, will have a look asap

On Sat, 13 Feb 2021, 19:48 Wilhelm Raider, notifications@github.com wrote:

Hi,

when using fasttext in google colab, I'll get the error module 'gensim.models.fasttext' has no attribute 'load_facebook_vectors'

Any idea?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SkBlaz/rakun/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMSEREZNXVTWQ7EJNV7DMTS63COFANCNFSM4XSMZCZA .

SkBlaz commented 3 years ago

hello @Raidus , it seems gensim's API is fine, see the example. Which version are you using?

Raidus commented 3 years ago

@SkBlaz I am using version 3.6.0 in colab.

SkBlaz commented 3 years ago

Did you try to run the example? (you need pretrained vectors for this)

hawekotte commented 3 years ago

While it has been a bit, I wanted to pop in to say that while the requirements file targets gensim >= 3.8.0, Colab installs 3.6.0 (which isn't proper). So a quick solution is to just run ! pip3 install --upgrade gensim (to upgrade to the current v4.0.1) and things should be back up and running.

SkBlaz commented 3 years ago

This was indeed the issue. As the requirements are clearly stated, I think we can safely close this one.