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

Train MTL model for two tasks using one dataset only. #38

Open
Dragon615 opened this issue Feb 1, 2019 · 1 comment
Open

Train MTL model for two tasks using one dataset only. #38

Dragon615 opened this issue Feb 1, 2019 · 1 comment

Comments

@Dragon615
Copy link

I would like to train a multi-task learning model for two tasks, pos tagging, and language id. I have one dataset that is annotated for pos tagging and language id. My question is that is it possible to train a MTL model that learns these two tasks jointly using one dataset?

Thanks in advance for your response.

@nreimers
Copy link
Member

nreimers commented Feb 1, 2019

Hi @Dragon615
one trick to achieve this is to create two copies of the folder with your train/dev/test files, i.e. data/pos_task/ and data/language_id_task/

Then you can configure the model so that it is trained on 'pos_task' for POS tagging and on 'language_id_task' for language identification.

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