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
Training PET on a new task #3
Comments
Hi @Mahhos, I'm on vacation this week, but I'll try to answer your question early next week. |
As I understand the docs, after you wrote your own pvp & task_processor, you call the CLI with |
I ended up copying the classes to the respective files and can confirm it works. Due to the use of transformers library I had my language model (roberta) already installed on my machine and training started right away 🚀 👏 |
|
@Mahhos what's your error ? |
No error. I run the command from the terminal and it does not do anything without any error. |
@chris-aeviator I found the issue. I run the same command with |
I think this happens if you have unequal columns in your data. Try to do a very minimal example first. pvp.py
training.csv
dev.csv
unlabeled.csv
(actually my field B is a category, currently always the same with all examples) with around 20 training examples (split between training and dev) - I can get pretty good results with real world data by running
|
@chris-aeviator I guess there is something wrong with my
|
@Mahhos have you made sure that you keep an empty column in train: so the |
@chris-aeviator thank you so much. That was a good point! |
Hi. I want to train PET on a new task for which I prepared
custom_task_processor.py
andcustom_task_pvp.py
. My question is how should we run/tell the program to read our customized files (instead of the main files) and run the registered new task? It seems that just running the commands under thePET Training and Evaluation
section does not do the task.The text was updated successfully, but these errors were encountered: