Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dnnc with no finetuning #1630

Merged
merged 61 commits into from
Jun 30, 2023
Merged

Dnnc with no finetuning #1630

merged 61 commits into from
Jun 30, 2023

Conversation

LogicZMaksimka
Copy link
Contributor

@LogicZMaksimka LogicZMaksimka commented Mar 7, 2023

Few-Shot Text Classification Model

  • Added few-shot text classification model based on DNNC architecture that does not require any training. It takes an example that needs to be classified, a dataset based on which classification is performed and predicts the label of the example.

  • At the moment, main config supports only predictions. Training and evaluation have to be conducted in separate configuration files.

  • Model supports out-of-scope detection by using a confidence threshold

docs/index.rst Show resolved Hide resolved
deeppavlov/core/common/metrics_registry.json Outdated Show resolved Hide resolved
deeppavlov/metrics/accuracy.py Outdated Show resolved Hide resolved
deeppavlov/models/preprocessors/dnnc_preprocessor.py Outdated Show resolved Hide resolved
deeppavlov/dataset_iterators/few_shot_iterator.py Outdated Show resolved Hide resolved
deeppavlov/dataset_iterators/few_shot_iterator.py Outdated Show resolved Hide resolved
deeppavlov/models/preprocessors/dnnc_preprocessor.py Outdated Show resolved Hide resolved
deeppavlov/dataset_iterators/few_shot_iterator.py Outdated Show resolved Hide resolved
deeppavlov/dataset_iterators/few_shot_iterator.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@IgnatovFedor IgnatovFedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add description like in 1.0.0 release notes

deeppavlov/configs/classifiers/dnnc_infer.json Outdated Show resolved Hide resolved
deeppavlov/core/common/metrics_registry.json Outdated Show resolved Hide resolved
deeppavlov/metrics/accuracy.py Outdated Show resolved Hide resolved
deeppavlov/core/common/metrics_registry.json Outdated Show resolved Hide resolved
deeppavlov/metrics/fmeasure.py Outdated Show resolved Hide resolved
@IgnatovFedor IgnatovFedor merged commit 65eb612 into dev Jun 30, 2023
@IgnatovFedor IgnatovFedor deleted the feat/dnnc_no_finetuning branch June 30, 2023 07:08
@IgnatovFedor IgnatovFedor mentioned this pull request Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants