Skip to content

Commit

Permalink
Merge pull request #3301 from flairNLP/3298-bug-when-finetuning-typee…
Browse files Browse the repository at this point in the history
…rror-is-thrown-due-to-missing-decoder

fix embedding finetuning tutorial
  • Loading branch information
alanakbik authored Sep 11, 2023
2 parents 16fbbbd + 8517e69 commit f9a8682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/docs/TUTORIAL_9_TRAINING_LM_EMBEDDINGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ from flair.trainers.language_model_trainer import LanguageModelTrainer, TextCorp


# instantiate an existing LM, such as one from the FlairEmbeddings
language_model = FlairEmbeddings('news-forward').lm
language_model = FlairEmbeddings('news-forward', decoder=True).lm

# are you fine-tuning a forward or backward LM?
is_forward_lm = language_model.is_forward_lm
Expand Down

0 comments on commit f9a8682

Please sign in to comment.