What are the Golden Rules in Pragmatic Segmenter
masterThe Golden Rules are a curated set of edge-case test scenarios used to evaluate the accuracy of sentence segmentation algorithms. Instead of testing common sentence structures (like a word followed by a period), the Golden Rules focus on difficult linguistic boundaries such as:
- Abbreviations: Handling single-letter, multi-period, and two-letter abbreviations (e.g.,
Mr.,U.S.A.,p. 55) both in the middle and at the end of sentences. - Punctuation Complexity: Managing double punctuation (
!!,??), ellipses (...), and various quotation styles. - Lists and Numbering: Correctly segmenting items in alphabetical, numbered, or bulleted lists.
- Special Entities: Handling email addresses, web URLs, and geographic coordinates.
- Language-Specific Nuances: Addressing unique punctuation and abbreviation rules for English, German, Japanese, Arabic, Italian, Russian, Spanish, Greek, Hindi, Armenian, Burmese, Amharic, Persian, Urdu, and Dutch.
Developers can use these rules to benchmark their own segmentation implementations or to understand the complexity of the task.