在复现代码的时候,直接用Python命令运行,出现了“usage: preprocess.py [-h] --config CONFIG
preprocess.py: error: the following arguments are required: --config”的错误!使用了网上大多数常见的修改方法(如下所示),但是还是没有解决我的问题。
报错截图:
网上常见的修改方法
1、修改运行配置(没成功)
参考博客:(3条消息) main.py: error: the following arguments are required:_GD_Wang1206的博客-CSDN博客
2、删除“required=True” 或者将“required=True”改为“required=false”
我的方法:
输入命令“Python preprocess.py --config ./config/yelp_preprocess.yml”,成功解决这个bug!