Skip to content

Fix split_claims splitting on abbreviation periods - #1

Open
sharadvc wants to merge 1 commit into
mainfrom
cursor/fix-split-claims-abbreviations-8ea5
Open

Fix split_claims splitting on abbreviation periods#1
sharadvc wants to merge 1 commit into
mainfrom
cursor/fix-split-claims-abbreviations-8ea5

Conversation

@sharadvc

Copy link
Copy Markdown
Owner

Summary

split_claims treated any period followed by whitespace as a sentence boundary, so strings like Meet Dr. Smith. became bogus fragments (Meet Dr., Smith.) and skewed grounding scores.

Changes

  • Add test_split_claims_does_not_split_abbreviations covering Dr., Mr., e.g., and i.e.
  • Mask abbreviation periods before applying the sentence split regex, then restore them in each claim

Fixes AgentPostmortem#18

Open in Web Open in Cursor 

Protect Dr., Mr., Mrs., Ms., e.g., and i.e. before sentence splitting so
grounding is not skewed by bogus fragment claims.

Fixes AgentPostmortem#18.
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.

split_claims splits abbreviations, creating bogus claims

1 participant