Skip to content
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

关于run.py 中的 parser #95

Open
Ahaiya opened this issue Aug 25, 2022 · 0 comments
Open

关于run.py 中的 parser #95

Ahaiya opened this issue Aug 25, 2022 · 0 comments

Comments

@Ahaiya
Copy link

Ahaiya commented Aug 25, 2022

建议将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,直接传入会没有效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant