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. update tests
  • Loading branch information
MattGPT-ai committed Nov 24, 2024
1 parent cfeea13 commit f94a56f
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 314 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 f94a56f

Please sign in to comment.