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

Fix coref return type and add fallback #883

Merged
merged 2 commits into from
Dec 7, 2023
Merged

Fix coref return type and add fallback #883

merged 2 commits into from
Dec 7, 2023

Conversation

bact
Copy link
Member

@bact bact commented Dec 7, 2023

  • coref: Fix FastCoref.predict() return type
  • coref: Make sure that coreference_resolution() returns something valid, even if it failed to get a model
  • Fix typos in docstring
  • classify: was cls, rename for naming consistency - pythainlp.cls is still accessible for backward compatibility (with deprecated warning)
  • General code formatting and import sorting
  • Add ruff config

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Passed code styles and structures
  • Passed code linting checks and unit test

- coref: Fix `FastCoref.predict()` return type
- coref: Make sure that `coreference_resolution()` returns something valid, even if it failed to get a model
- classify: was `cls`, rename for naming consistency - `pythainlp.cls` is still accessible for backward compatibility (with deprecated warning)
- General code formatting and import sorting
- Add ruff config
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@pep8speaks
Copy link

pep8speaks commented Dec 7, 2023

Hello @bact! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 86:21: W503 line break before binary operator

Comment last updated at 2023-12-07 02:05:20 UTC

@bact bact added the bug bugs in the library label Dec 7, 2023
@bact bact self-assigned this Dec 7, 2023
@bact bact added this to the 5.0 milestone Dec 7, 2023
Copy link

sonarqubecloud bot commented Dec 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@bact bact merged commit bf61884 into PyThaiNLP:dev Dec 7, 2023
8 of 13 checks passed
@coveralls
Copy link

coveralls commented Dec 7, 2023

Coverage Status

coverage: 84.154% (-0.01%) from 84.166%
when pulling c8d643f on bact:dev
into 9bd951b on PyThaiNLP:dev.

@bact bact added the documentation improve documentation and test cases label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs in the library documentation improve documentation and test cases
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants