Skip to content

PyTorch implementation for Meta Learning algorithms :Model Agnostic Meta Learning(MAML) and Reptile for Part of Speech Tagging to evaluate few short learning

License

Notifications You must be signed in to change notification settings

pranavajitnair/Metalearning-for-POS-tagging-PyTorch

Repository files navigation

Meta Learning for POS Tagging

Implementation of three Meta Learning approaches : MAML, Reptile for POS Tagging in PyTorch.

Datset has been borrowed from Universal Dependencies

Nine languages are used to train the model.

Training the Model

This would also print the test results

to train and test the model run

python train.py

Optional Arguments are:

--learning_rate          The learning rate for MAML
--epsilon                The value of epsilon for updating model parameters in Reptile
--epochs                 Number of epochs
--K_shot_learning        How many sentences to sample for learning i.e 1-shot, 5-shot etc
--N_way_learning         How many tasks to test on
--hidden_size            Hidden size for LSTM units
--training_mode          MAML, Reptile which one to use for training the model
--inner_gradient_update  Number of inner gradient updates to perform

About

PyTorch implementation for Meta Learning algorithms :Model Agnostic Meta Learning(MAML) and Reptile for Part of Speech Tagging to evaluate few short learning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages