dwadden / multivers

Code and model checkpoints for the MultiVerS model for scientific claim verification.
MIT License
44 stars 11 forks source link

About train.py #4

Closed CEclipse closed 1 year ago

CEclipse commented 2 years ago

Hi,@dwadden

And i have a question,how could i get the

import lib.longformer.data as dm from lib.longformer.model import SciFactModel on train.py,i haven’t found the module named lib.longformer

and by the way did u train the model on scifact,covidfact, Healthver and fever datasets?

Looking forward your reply best regards

dwadden commented 2 years ago

Hi,

I'm going to post the data preprocessing code and training code soon (next few weeks). I'm very sorry for the delay, I've had a few other projects I've needed to wrap up.

As for your first question, did you do conda develop . on the project root folder?

Dave

CEclipse commented 2 years ago

Hi, I didn‘t do conda develop. on the project root folder. If I do this step , could I get the
lib.longformer.data as dm from lib.longformer.model import SciFactModel lib.longformer module on train.py? Looking forward your reply

dwadden commented 2 years ago

I'm sorry I missed this. I'm not sure I understand your issue? If things still aren't working, could you post a minimal example with the code you're trying to run and the bug you're getting when you try to run it?

helena-1115 commented 1 year ago

Hi, I want to ask the same question. I followed all instructions and did "conda develop ." on the project root folder. When I run "longchecker/train.py" to finetune the scifact dataset from the checkpoint, I get an error as below. error How can I import the 'lib.longformer' module?

dwadden commented 1 year ago

Hi,

I'm sorry about this, I still haven't gotten the training code cleaned up yet. I'll post here when that's changed.

Dave

dwadden commented 1 year ago

Training code is now working! See here for details. let me know if you've got more questions.

helena-1115 commented 1 year ago

Thank you for sharing the training code!😊

dwadden commented 1 year ago

You're welcome! Sorry it took so long.