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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doctest issues in token_classification/summary.py #1094

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gogetron
Copy link
Contributor

@gogetron gogetron commented Apr 11, 2024

Summary

馃幆 Purpose: Fix doctest issues in token_classification/summary.py

To ensure that the doctests are working correctly, I ran:

python3 -m doctest cleanlab/token_classification/summary.py

It produces an error on the current version that has been addressed with this PR.

I have removed the extra space in the print messages because print produces a new line by default, thus this space is not useful and conflicts with doctests.

Testing

馃攳 Testing Done: Existing test suite and python3 -m doctest cleanlab/token_classification/summary.py.

Links to Relevant Issues or Conversations

#1092

gogetron and others added 2 commits April 11, 2024 16:39
The explanatory text about using class names only applies when labels/pred_probs are provided.
Copy link
Member

@elisno elisno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed a print condition for the display_issues (so the docstring requires less modification).

Ortherwise, LGTM!

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

Successfully merging this pull request may close these issues.

None yet

2 participants