Giter Club home page Giter Club logo

Comments (2)

mariisaschmidt avatar mariisaschmidt commented on August 22, 2024 1

Hi!
vielen Dank! So klappt es! 😄

from germanwordembeddings.

devmount avatar devmount commented on August 22, 2024

Hi Marisa,
spannendes Projekt! Ich habe das Model damals im word2vec C binary Format gespeichert, es muss auch in diesem Format geladen werden, damit es funktioniert. Ich habe deinen Code geprüft, du lädst das Model per

vector_model = gensim.models.Word2Vec.load(w2v_model).wv

Damals habe ich es so geladen:

trained_model = gensim.models.KeyedVectors.load_word2vec_format(args.model.strip(), binary=is_binary)

Ich habe mal in die Doku geschaut und gesehen, dass das C binary Format anscheinend noch unterstützt wird. Hier ein Beispiel für das Laden in deinem Fall (ungetestet):

from gensim.test.utils import datapath
vector_model = gensim.models.KeyedVectors.load_word2vec_format(datapath(w2v_model), binary=True)

from germanwordembeddings.

Related Issues (15)

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.