-
Notifications
You must be signed in to change notification settings - Fork 279
phayathaibert, khavee, parse: Code clean up #889
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
Conversation
- `pythainlp.augment.lm.phayathaibert.ThaiTextAugmenter.augment()`: Add exception if max num_args is exceeded, also guarantee return if work properly - `Khavee`: skip McCabe complexity check for now (54 complexity at the moment) - `pythainlp.parse.core.dependency_parsing()`: model: str can't be None
Hello @bact! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2023-12-12 08:18:19 UTC |
Kudos, SonarCloud Quality Gate passed! |
pythainlp.augment.lm.phayathaibert.ThaiTextAugmenter.augment()
: Add exception if max num_args is exceeded, also guarantee return if work properlypythainlp.phayathaibert.core.ThaiTextProcessor
: Addself
to argument of class methodspythainlp.phayathaibert.core.ThaiTextProcessor
:toks
andpre_rules
have to beList[str]
, notCollection[str]
as the order matters.pythainlp.parse.core.dependency_parsing()
:model: str
can't beNone
-> change tomodel: Union[str, None]
Khavee
: membership test should beX not in
, notnot X in
Khavee
: skip McCabe complexity check for now (54 complexity at the moment)