649453932 / Chinese-Text-Classification-Pytorch

中文文本分类,TextCNN,TextRNN,FastText,TextRCNN,BiLSTM_Attention,DPCNN,Transformer,基于pytorch,开箱即用。
MIT License
5.19k stars 1.22k forks source link

关于run.py 中的 parser #95

Open Ahaiya opened 1 year ago

Ahaiya commented 1 year ago

建议将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')

因为在 parsertype=bool 仅是将空字符识别为false,含字符识别为true,直接传入会没有效果