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

How can I create new models? #13

Open
TalhaAbid opened this issue Nov 26, 2021 · 1 comment
Open

How can I create new models? #13

TalhaAbid opened this issue Nov 26, 2021 · 1 comment

Comments

@TalhaAbid
Copy link

I want to combine RoBerta encoder with a gts decoder, using custom dataset, is this possible?have u already implemented it. I need to do this for class research project so any pointers are appreciated, Thank You.

@LYH-YF
Copy link
Owner

LYH-YF commented Dec 3, 2021

If you want to combine Roberta encoder with gts decider, my suggestion is writing a new model class under the folder mwptoolkit/model/Seq2Tree, you can reference most code of gts.

Several works has tried to combine pretrained model with gts decoder and we are reproducing their works.

in order to deploy pretrained model in mwptoolkit, we preliminarily implement a dataset class named PretrainDataset, and a dataloader class named PretrainDataloader. So running pretrained model based method, you need to initialize both of them.

And then, the trainer is also need to be initialized,my suggestion is simply inherit GTSTrainer.

In mwptoolkit,some bugs has been found when running custom dataset on gts.It seems like single equation dataset's bug. My suggestion is you can run deployed dataset on the new model.

I hope this will help you!

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