-
Notifications
You must be signed in to change notification settings - Fork 282
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
Problem using personalized task #14
Comments
Ok, I solved this by putting the example's classes directly on the cli.py file! Now I'm struggling setting the personalized PATTERN IDS, which I guess I have to take from the personalized PVP. |
Hi @JohnPFL , as you already know, PET requires a DataProcessor and a PVP.
You can then call PET with With regards to the pattern IDs, you may want to take a look at https://github.com/timoschick/pet/blob/master/examples/custom_task_pvp.py . In your |
Thank you @timoschick for the answer!
|
When you run PET, what happens internally is that for each pattern, three models are trained and used to annotate unlabeled examples; these annotations are written in a file called |
Perfect. Solved completely the error, it was as you said. |
The
where |
Hello, @timoschick.
First of all, I want to compliment you for the great work you did with PET.
I think this is amazing and I can't stand the idea to try it to solve some of my data problems. I am quite new to transformers, so probably I'm doing something terribly naive.
First of all I created my personalized task using
`class MyTaskDataProcessor(DataProcessor):
"""
Example for a data processor.
"""
PROCESSORS[MyTaskDataProcessor.TASK_NAME] = MyTaskDataProcessor`
Ok, now I want to use it to solve my problem. So I'm using this command line:
cmd = """python cli.py --method pet --data_dir .../comments_class/code/pet-master/pet --model_type roberta --model_name_or_path roberta --task_name --output_dir ...comments_class/data/output -- pattern_ids 0 1 --do_train --do_eval """
The problem is: how to communicate to the cli.py the new task I've created?
Sorry if I'm being too naive. I think this is an easy one and maybe it will be useful for future noobs too.
Thank again for your work!
The text was updated successfully, but these errors were encountered: