Open Ahaiya opened 1 year ago
建议将run.py中的
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,直接传入会没有效果
parser
type=bool
建议将
run.py
中的parser.add_argument('--word', default=False, type=bool, help='True for word, False for char')
改为
因为在
parser
中type=bool
仅是将空字符识别为false,含字符识别为true,直接传入会没有效果