-
Notifications
You must be signed in to change notification settings - Fork 4
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
NotImplementedError #1
Comments
Hi, you need to pass the "train_by_pair" argument |
你好,所有的参数设置可以在setup.py里面查看详细的解释。 缺失模块的原因是因为调用main函数的时候,未从命令行传入"--train_by_pair", 具体调用方式可以参考以下脚本最后一行: |
Traceback (most recent call last): |
你好,这个应该是huggingface的模型下载问题,可以参考https://huggingface.co/t5-base 进行下载。 如果是国内网络引起的话,可以考虑通过镜像下载或者提前下载至本地。 |
Traceback (most recent call last): |
请确认相关package版本一致: https://github.com/DAMO-NLP-SG/BGCA/blob/master/requirements.txt 可以尝试在python shell / notebook中检查模型是否能正常加载,再尝试运行当前repo代码 |
您好,代码跑到中途的时候还是出现了这个问题: |
你好,问题应该出自windows和Linux系统之间的路径差异, '../outputs/uabsa/cross_domain\0609_2051-experinments/seed-3/laptop-rest/score/test_greedy_score.json' 路径中“cross_domain\0609_2051"处被setup.py 105行处代码自动添加为了反斜,将该处代码改成以正斜字符串联路径应该可以解决 |
通过你提供的结果来看的话,output_dir = os.path.join(output_dir, f"{timestamp}-{args.name}").replace("/", "\") 会导致正反斜混用(如截图报错所示,路径前半段为双反斜,后半段为正斜),因为这处代码只涉及到输出文件夹,后续的具体存档文件路径处代码没有修改成双反斜。 简单的做法是可以尝试全部统一成正斜,具体是只将setup.py 105行处改为 output_dir = f"{output_dir}/{timestamp}-{args.name}"。 |
你好,请问在文件系统中能看到该文件吗? |
是的,里面有test_greed_score.json文件吗? |
没有的,到这一步就点不开这个文件了 |
你好,我注意到你的tag tokens 也是空的,能否上传你的运行脚本和log文件方便我查看 |
好的,可以的,等我有时间我在给您上传 |
可以发送至我邮箱:yue.deng@alibaba-inc.com |
Traceback (most recent call last):
File "C:\Users\孤星\Desktop\BGCA-master\code\main.py", line 328, in
runed_dirs = run_multiple_seeds(args, seed_list)
File "C:\Users\孤星\Desktop\BGCA-master\code\main.py", line 320, in run_multiple_seeds
raise NotImplementedError
NotImplementedError
The text was updated successfully, but these errors were encountered: