关于run.py 中的 parser
Ahaiya opened this issue · comments
Ahaiya commented
建议将run.py
中的
parser.add_argument('--word', default=False, type=bool, help='True for word, False for char')
改为
parser.add_argument('--word', action='store_true', help='--word for word, none for char')
因为在 parser
中 type=bool
仅是将空字符识别为false,含字符识别为true,直接传入会没有效果