Understand razdel's tokenization and segmentation logic
masterDomain Optimization
razdel is a rule-based system optimized for Russian news and fiction. It is designed to mimic segmentation found in datasets like SynTagRus, OpenCorpora, GICRYA, and RNC. It may perform less accurately on social media, scientific articles, or legal documents.
Error Measurement
Performance is measured by the absolute number of errors per 1000 tokens/sentences. An error is counted if a split is either missing or extra compared to the ground truth (etalon).
Substring Objects
Both tokenize and sentenize return Substring objects. These objects are useful because they preserve the exact character offsets (start, end) from the original input string, allowing you to map tokens back to their original positions.