JD-AI-Research-Silicon-Valley / SAE

Code for AAAI 2020 paper "Select, Answer and Explain: Interpretable Multi-hop Reading Comprehension over Multiple Documents"
MIT License
41 stars 11 forks source link

output directory #3

Open Azade0506 opened 4 years ago

Azade0506 commented 4 years ago

Hi. As I read in Readme file, I created an empty directory named output, and run this code:

python main.py hotpot_train_v1.1.json but I get this Error:

'CUDA_VISIBLE_DEVICES' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "prepare_pred_gold.py", line 34, in <module>
    with open(preds_file) as reader:
FileNotFoundError: [Errno 2] No such file or directory: 'output/pred_gold_idx.json'
'CUDA_VISIBLE_DEVICES' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "combine_pred.py", line 46, in <module>
    main(span_pred_file, sp_pred_file)
  File "combine_pred.py", line 17, in main
    with open(span_pred_file) as fid:
FileNotFoundError: [Errno 2] No such file or directory: 'output/predictions_ans.json'

I even tried to create two empty json files in output directory with those names that are in error message but it still doesn't work. could you please help me with this?

dl580231 commented 4 years ago

I have also encountered this problem. Is there any solution?

husseinmozannar commented 3 years ago

You're probably on windows, just replace CUDA_VISIBLE_DEVICES=0 by set CUDA_VISIBLE_DEVICES=0 & in main.py

gongchuanyang commented 3 years ago

You're probably on windows, just replace CUDA_VISIBLE_DEVICES=0 by set CUDA_VISIBLE_DEVICES=0 & in main.py

Hi can you find train.py in run_hotpotqa_roberta.py? I can't find it

gongchuanyang commented 3 years ago

ok, thank you. 董磊 @. 重庆邮电大学 学生 ---Original--- From: @.> Date: Wed, Oct 20, 2021 17:13 PM To: @.>; Cc: @*.**@*.***>; Subject: Re: [JD-AI-Research-Silicon-Valley/SAE] output directory (#3) You're probably on windows, just replace CUDA_VISIBLE_DEVICES=0 by set CUDA_VISIBLE_DEVICES=0 & in main.py Hi can you find train.py in run_hotpotqa_roberta.py? I can't find it — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. Hi ! can you find train.py in run_hotpotqa_roberta.py? I can't find it. would you provide it for me ,i will appreciate it .

dl580231 commented 3 years ago

ok, thank you. 董磊 @.* 重庆邮电大学 学生 ---Original--- From: _@.> Date: Wed, Oct 20, 2021 17:13 PM To: @.>; Cc: @.@.**_>; Subject: Re: [JD-AI-Research-Silicon-Valley/SAE] output directory (#3) You're probably on windows, just replace CUDA_VISIBLE_DEVICES=0 by set CUDA_VISIBLE_DEVICES=0 & in main.py Hi can you find train.py in run_hotpotqa_roberta.py? I can't find it — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. Hi ! can you find train.py in run_hotpotqa_roberta.py? I can't find it. would you provide it for me ,i will appreciate it .

Sorry, I haven't dealt with this for a long time, and I can't find it.

gongchuanyang commented 3 years ago

ok, thank you. 董磊 @. 重庆邮电大学 学生 ---Original--- From: @.> Date: Wed, Oct 20, 2021 17:13 PM To: @.>; Cc: @*.**@*.***>; Subject: Re: [JD-AI-Research-Silicon-Valley/SAE] output directory (#3) You're probably on windows, just replace CUDA_VISIBLE_DEVICES=0 by set CUDA_VISIBLE_DEVICES=0 & in main.py Hi can you find train.py in run_hotpotqa_roberta.py? I can't find it — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

ok, thank you. 董磊 @.* 重庆邮电大学 学生 ---Original--- From: _@.> Date: Wed, Oct 20, 2021 17:13 PM To: @.>; Cc: @.@.**_>; Subject: Re: [JD-AI-Research-Silicon-Valley/SAE] output directory (#3) You're probably on windows, just replace CUDA_VISIBLE_DEVICES=0 by set CUDA_VISIBLE_DEVICES=0 & in main.py Hi can you find train.py in run_hotpotqa_roberta.py? I can't find it — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. Hi ! can you find train.py in run_hotpotqa_roberta.py? I can't find it. would you provide it for me ,i will appreciate it .

Sorry, I haven't dealt with this for a long time, and I can't find it. 这个模型,你以前实现过吗?

gongchuanyang commented 3 years ago

我在https://github.com/JD-AI-Research-Silicon-Valley/SAE/blob/master/run_hotpotqa_roberta.py 里面没有找到train.py文件,根据论文中的描述,有一个选择文档的过程,使用pairWise排序算法,在代码中没有看到是如何实现的,就是这个train_dataset是怎么来的?看了一周的代码,还是很疑惑,希望能不吝赐教,感谢

dl580231 commented 3 years ago

这个模型,你以前实现过吗?

no

yysirs commented 3 years ago

请问你现在找到train.py了嘛

yysirs commented 3 years ago

我在https://github.com/JD-AI-Research-Silicon-Valley/SAE/blob/master/run_hotpotqa_roberta.py 里面没有找到train.py文件,根据论文中的描述,有一个选择文档的过程,使用pairWise排序算法,在代码中没有看到是如何实现的,就是这个train_dataset是怎么来的?看了一周的代码,还是很疑惑,希望能不吝赐教,感谢

可以加一下联系方式,一起交流一下嘛

Dorothy011 commented 2 years ago

我在https://github.com/JD-AI-Research-Silicon-Valley/SAE/blob/master/run_hotpotqa_roberta.py 里面没有找到train.py文件,根据论文中的描述,有一个选择文档的过程,使用pairWise排序算法,在代码中没有看到是如何实现的,就是这个train_dataset是怎么来的?看了一周的代码,还是很疑惑,希望能不吝赐教,感谢

请问你们解决了吗,可一起交流下吗?

Dorothy011 commented 2 years ago

我在https://github.com/JD-AI-Research-Silicon-Valley/SAE/blob/master/run_hotpotqa_roberta.py 里面没有找到train.py文件,根据论文中的描述,有一个选择文档的过程,使用pairWise排序算法,在代码中没有看到是如何实现的,就是这个train_dataset是怎么来的?看了一周的代码,还是很疑惑,希望能不吝赐教,感谢

可以加一下联系方式,一起交流一下嘛

请问你们解决了吗,可一起交流下吗?

yysirs commented 2 years ago

wx:13273814025