Handling of in-file negatives in ReProver #47
-
Hi, thanks for open releasing the source code of ReProver and providing a very helpful guide on training the model. I notice that the in-file negatives are critical for the performance of ReProver, as explained in the paper, and I'm trying to understand how this is implemented. As far as I understand, given an example ReProver/retrieval/datamodule.py Lines 105 to 112 in 0dbb82e Here is what I found a bit confusing: when |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Thanks for your interest in our work. "In-file negative" means the negative premise is from the same file as the positive premise. Therefore, if the positive premise is from the current file (i.e., |
Beta Was this translation helpful? Give feedback.
Hi,
Thanks for your interest in our work. "In-file negative" means the negative premise is from the same file as the positive premise. Therefore, if the positive premise is from the current file (i.e.,
ex["pos_premise"].path == ex["context"].path
), all negative premises in the current file are in-file negatives.