Code Monkey home page Code Monkey logo

Comments (3)

HahaBill avatar HahaBill commented on June 27, 2024

@ZoranPandovski Hi Zoran, I'd love to work on this feature as I said in the chat!

Just one thing: this is how I train the NER model:

optimizer = nlp.initialize()
for itn in range(100):
    random.shuffle(train_data)
    for raw_text, entity_offsets in train_data:
        doc = nlp.make_doc(raw_text)
        example = Example.from_dict(doc, {"entities": entity_offsets})
        nlp.update([example], sgd=optimizer)
nlp.to_disk("/output")

And this is how I load:

nlp = spacy.load("/output")

Is it possible to savee the pipeline/model somewhere and load it? If so which directory/path?

I am thinking of doing f-strings paths for each trained custom pipeline/model. I will use pre-existing NER model and fine-tune it without resetting its internal state.

from mindsdb.

ZoranPandovski avatar ZoranPandovski commented on June 27, 2024

Thanks @HahaBill, I've assigned it to you. For storing the pipeline we can use the model storage, check the base interface

self.model_storage = model_storage
. Also, you can check some of the ML Handlers for how to use it

from mindsdb.

HahaBill avatar HahaBill commented on June 27, 2024

@ZoranPandovski Right got it! Thanks for the info!

from mindsdb.

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.