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
Annotating an unlabeled set #1
Comments
Hi, this is a bit difficult to do in the current version because PET expects the unlabeled examples to be in the same file as the labeled examples (this will be fixed in the next version, which will hopefully be released in ~2 weeks). What you can do until then is the following:
For example, if your |
Thanks for the response. In the current version (not changing line 154 in |
That would be the safest way, so I'd recommend doing it like that! |
Thanks. I have got another question regarding the verbalizer. I am designing a custom PVP. How should I make sure that the language model would exactly fill the For example for the Yelp task, how did you know that the language model would exactly predict |
If your verbalizer uses only the words
PET basically removes all words that are not used by the verbalizer, resulting in the following reduced list:
So PET would assign the label corresponding to |
if I have labels Is it correct that I then apply softmax to it to get a prediction of the first label "bad" (corresponds to first "column" in logits file) and "good" (second "column") example logits
EDIT: Ended up writing a conversion script (since I'm using an airflow pipeline anyways for the job) that writes me a prediction file with probabilities from the logits
output is a propability for my label bad (first column) and good (2nd)
|
Hi. Thanks for the great repo. I have got a question regarding the PET training and annotating an unlabeled set (as mentioned in the paper examples from D). I assume that it would be done using the command in the
PET Training and Evaluation
section in the repo. However, I am not sure where to put the unlabeled set and where to get the predicted labels? Would you please let me know how we should get the predicted labels for the unlabeled set? Thank you.The text was updated successfully, but these errors were encountered: