Comments (4)
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.
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.
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.
This should be in the FAQ as its a very common need!
from deeppavlov.
Related Issues (20)
- 👩💻📞DeepPavlov Community Call #18
- ERROR while training rel_ranking model of KBQA pipeline HOT 1
- Doesn't work with recent version of pytorch-crf HOT 3
- No such file or directory: 'syntax_ru_syntagrus_bert' HOT 2
- CRF model is not saved to correct path when training NER HOT 3
- ModuleNotFoundError: No module named 'torch' HOT 1
- Predictions NER_Ontonotes_BERT_Mult for entities with interpunction HOT 3
- Can't install model (deeppavlov colab example ) HOT 2
- Predictions NER for entities with interpunction HOT 2
- Neural morphological tagging with DeepPavlov: howto
- Insult detection algorithm (additional insult) HOT 1
- Columns and DataType Not Explicitly Set on line 411 of docred_reader.py
- Проблема с парсингом входных данных через api и через socket HOT 3
- Repl: KeyboardInterrupt, EOFError
- requests.exceptions.SSLError: HTTPSConnectionPool(host='files.deeppavlov.ai', port=443): Max retries exceeded with url: /v1/ner/ner_ontonotes_bert_mult_torch_crf.tar.gz (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)')))
- The demo for the NER model contains an incorrect model name HOT 6
- Outdated Pandas and other dependencies
- Update to pydantic v2
- NER - “input sequence after bert tokenization shouldn’t exceed 512 tokens” (ner_bert_base) HOT 1
- ValueError: BuilderConfig 'terra' not found. Available: ['default']
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deeppavlov.