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
Format of the ranking candidates file for GrailQA #6
Comments
Sure. It will a be a jsonline file where each line is a json of the information of the candidates for a question.
|
Thanks! |
ex: True means if this logical form is equivalent to the ground truth logical form. If ex is true, we will not use this logical form as negative candidates (you don't wanna penalize a logical form that is equivalent to the ground truth). |
Got it! Thank you for the detailed explanation! |
Sorry, one more question. |
Hi there, I just want to follow up on this thread as I am doing something similar. I am curious what the input batch looks like before preprocessing when it is being passed through the RobertaRanker.py file. Specifically I would like to know what is the input text, not input_id that is eventually passed to the model forward function. Thank you in advance for the information! |
the code for processing logical form can be found in
basically, we tokenize the expression, replace "_" in relations with " ", replace entities "m.xxxx" with its label. |
Thank you for answer. I am trying to understand the forward function of the RobertaRanker.py, and I am confused the tensor dimensions when you compute the loss. I'm referring to this part:
Why do you reshape the logits to be [batch_size, sample_size] when computing the loss, but then call view(-1) on the labels? Won't this cause the labels to be in the shape [batch_size * sample_size] and cause a shape mismatch error? My intuition says that both the logits and labels should be in the shape [batch_size * sample_size] so maybe I am misunderstanding something. If my question is not clear please ask me and I can clarify. Thank you again for your answers. |
logits: [batch_size, sample_size], labels" [batch_size]. |
Hi. I am interested in the ranker part of this project. I am currently setting up the environment. However, looks like the previous steps could be time consuming. Can I get some quick information on the format of the output files for:
Thanks!
The text was updated successfully, but these errors were encountered: