Coder Social home page Coder Social logo

Load dict from trained model about fasttext HOT 4 CLOSED

yohanguez avatar yohanguez commented on July 30, 2024 2
Load dict from trained model

from fasttext.

Comments (4)

AritzBi avatar AritzBi commented on July 30, 2024

I don't know why but It takes very long to load model's '.bin' as dictionary. I've trying to load the english pre-trained word vectors and after a day, it hasn't finished the "Load dict from trained model" step.

from fasttext.

benman1 avatar benman1 commented on July 30, 2024

I am also trying with ./fasttext [...] -inputModel myModel.bin -inc. I am getting this here:

Update args
Load dict from trained model
Load dict from training data
Read 132M words
Number of words:  3919267
Number of labels: 0
Merge dict
fasttext: src/dictionary.cc:139: std::__cxx11::string fasttext::Dictionary::getWord(int32_t) const: Assertion `id < size_' failed.

from fasttext.

ericxsun avatar ericxsun commented on July 30, 2024

@yohanguez @AritzBi @benman1 actually, with the following, no error occurred.

  1. train first model:
    ./fasttext supervised -input training_data -output supervised-model

supervised-model.bin and supervised-model.vec were generated.

  1. incremental training with new data: new_training_data
    ./fasttext supervised -input new_training_data -inputModel supervised-model.bin -output re-supervised-model -incr

training started and then, re-supervised-model.bin and re-supervised-model.vec were generated.

same as for unsupervised, like 'cbow'.

could you debug it step by step, appreciation for your any efforts. Also, I'll exam the code.

from fasttext.

ericxsun avatar ericxsun commented on July 30, 2024

do training/incr-training with word-vector-example.sh, no errors. Please retry with the latest code. THKS

from fasttext.

Related Issues (11)

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.