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

Fine-tuning flair model #99

Open
filiallags0i opened this issue Apr 10, 2024 · 1 comment
Open

Fine-tuning flair model #99

filiallags0i opened this issue Apr 10, 2024 · 1 comment

Comments

@filiallags0i
Copy link

Can you provide more details on the fine tuning approach here that is discussed in the README? It says that Flair models can be trained with trainer.train(corpus), but no such method exists. Also, how would you take an existing flair model and fine tune it with FlairTrainer? An example would be great! Thanks!

@omri374
Copy link
Contributor

omri374 commented Apr 14, 2024

Hi, it could be that the codebase for supporting flair is not up to date, we'll look into this.
In the mean time, I would suggest to look at the flair docs for training: https://flairnlp.github.io/docs/tutorial-training/how-to-train-sequence-tagger

From looking into the code, there's a ModelTrainer class which as a train method: https://github.com/flairNLP/flair/blob/223f346c5a669e628e81a6b470bb44b6c6b37286/flair/trainers/trainer.py#L126

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

No branches or pull requests

2 participants