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 224697a commit c92f501
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 335 deletions.
5 changes: 2 additions & 3 deletions flair/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .clustering import ClusteringModel
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 @@ -40,5 +39,5 @@
"TextRegressor",
"ClusteringModel",
"MultitaskModel",
"DeepNCMClassifier",
"DeepNCMDecoder",
]
Loading

0 comments on commit c92f501

Please sign in to comment.