Coder Social home page Coder Social logo

Comments (4)

seliverstov avatar seliverstov commented on May 14, 2024 2

deeppavlov.deep interact module is pretty simple. You can write two line of code to interact with your model directly in your own python script:

from deeppavlov.core.commands.infer import interact_model
interact_model(pipeline_config_path)

or train your model:

from deeppavlov.core.commands.train import train_model_from_config
train_model_from_config(pipeline_config_path)

from deeppavlov.

seliverstov avatar seliverstov commented on May 14, 2024

The only reason we write the imports in the __init__ file is to ensure that all standard components are registered through the decorator @register.

@register('ner')
class NER(TFModel):

It is not necessary to put your component import in this __init__ file, you only need to ensure that the appropriate decorator is called before the component is used through it code name in pipeline.

from deeppavlov.

sld avatar sld commented on May 14, 2024

I am running next command:
python -m deeppavlov.deep interact deeppavlov/configs/custom_config_component.json

How can I register custom component's dataset readers, iterators, model without putting to __init__.py of DeepPavlov repo?

It seems that I should write my own fork of deeppavlov.deep interact module.

from deeppavlov.

sshivaji avatar sshivaji commented on May 14, 2024

This should be in the FAQ as its a very common need!

from deeppavlov.

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.