Closed nanxfu closed 6 months ago
It seems you are using Window system.
To resolve the RuntimeError related to multiprocessing on Windows, ensure your code utilizes the if name == 'main': guard and calls multiprocessing.freeze_support() within it. This ensures proper initialization of subprocesses and prevents conflicts, allowing your multiprocessing code to run smoothly.
import multiprocessing
def main():
# Your main code here
if __name__ == '__main__':
multiprocessing.freeze_support()
main()
I just set num_worker = 0 ,it's work for me. I will try your code in my spare time and report for your project. By the way,how to understand the Single/Multiple question, I read the example question in the paper, but still confused with It, and the Equal type is vague for me.
Are there any specific definition or example in other paper?If sure,I could read it until I figure out it thanks for your working again!!
Single questions refer to questions that have only one time constraint, for example, asking what someone or someplace did in a certain year. Multiple questions, on the other hand, involve multiple temporal reasoning constraints, such as a question that requires both equal and first constraints. It needs two rounds of temporal reasoning to solve such a problem.
We first defined these categories in the paper, and as far as we know, there aren't any other papers that have similar definitions.
I see.The "First, Last, Before, After"type is easy to understand.However, could you introduce "Equal" type question more specifically?
I recognize it as the "normal type",that is to say:No Before/After,First/Last constraint in the question.Is this understanding correct?
For example,
Before: < t
Who was the President of the United States before the year 2005?
After: >t
Who was the President of the United States after the year 2005?
Equal: =t
Who was the President of the United States in 2005?
Thanks for your greate work! I completely follow with your step.But when I run
python ./train_qa_model.py --model multiqa
, the console reoport ERROR like this:Before this error,I encounter The gbk encoding error, but I solved this error by adding the "encoding=UTF-8" in
open()
function. I think it's not the main reason cause the RuntimeError(but, the origin code literally produce this problem).So, how do i resolve this RuntimeError?, Does it's caused by different dependencies version?
Thanks for your answering