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: remove pysbd and sentence segmenting #1826

Merged
merged 9 commits into from
Jan 9, 2025

Conversation

shahules786
Copy link
Member

@shahules786 shahules786 commented Jan 9, 2025

fixes:
#1783
#1736

@shahules786 shahules786 marked this pull request as ready for review January 9, 2025 11:01
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 9, 2025
@shahules786 shahules786 requested review from jjmachan and removed request for jjmachan January 9, 2025 11:04
@shahules786 shahules786 requested a review from jjmachan January 9, 2025 11:20
Comment on lines 35 to 37
reference, response = sample.reference, sample.response
assert isinstance(reference, str), "Expecting a string"
assert isinstance(response, str), "Expecting a string"
Copy link
Member

Choose a reason for hiding this comment

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

the fact that we have to use the assert here feels not good. The other problem is the error message, ideally it should tell them what to do about it, not sure if that is easy to define here

Copy link
Member Author

Choose a reason for hiding this comment

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

I have edited the message to make it clear, but this is an API design problem. The metric expects valid response and reference but in SIngleTurnSample they are optional.

@shahules786 shahules786 merged commit 6478a6e into explodinggradients:main Jan 9, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants