Skip to content

Commit

Permalink
feat: change DeepNCM classifier to a decoder so it can be used with d…
Browse files Browse the repository at this point in the history
…ifferent model types. make small changes to DefaultClassifier forward_loss to pass label tensor when needed
  • Loading branch information
MattGPT-ai committed Nov 24, 2024
1 parent cfeea13 commit b19e700
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 334 deletions.
4 changes: 2 additions & 2 deletions flair/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .deepncm_classification_model import DeepNCMClassifier
from .deepncm_classification_model import DeepNCMDecoder
from .entity_linker_model import SpanClassifier
from .entity_mention_linking import EntityMentionLinker
from .language_model import LanguageModel
Expand Down Expand Up @@ -38,5 +38,5 @@
"TextClassifier",
"TextRegressor",
"MultitaskModel",
"DeepNCMClassifier",
"DeepNCMDecoder",
]
Loading

0 comments on commit b19e700

Please sign in to comment.