{"id":24475267,"url":"https://github.com/xamgore/segtok","last_synced_at":"2026-03-02T22:39:22.709Z","repository":{"id":271743455,"uuid":"914017878","full_name":"xamgore/segtok","owner":"xamgore","description":"A rule-based sentence segmenter (splitter) and a word tokenizer using orthographic features","archived":false,"fork":false,"pushed_at":"2025-02-26T14:33:16.000Z","size":103,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T13:07:30.887Z","etag":null,"topics":["nlp","segmenter","tokenizer"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xamgore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-08T19:39:43.000Z","updated_at":"2025-03-16T05:49:15.000Z","dependencies_parsed_at":"2025-01-09T16:54:41.179Z","dependency_job_id":"08953895-9209-4449-a887-e823b2522545","html_url":"https://github.com/xamgore/segtok","commit_stats":null,"previous_names":["xamgore/segtok"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xamgore%2Fsegtok","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xamgore%2Fsegtok/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xamgore%2Fsegtok/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xamgore%2Fsegtok/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xamgore","download_url":"https://codeload.github.com/xamgore/segtok/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717242,"owners_count":21150389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nlp","segmenter","tokenizer"],"created_at":"2025-01-21T09:14:16.041Z","updated_at":"2026-03-02T22:39:17.683Z","avatar_url":"https://github.com/xamgore.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# segtok [![](https://img.shields.io/crates/v/segtok.svg)](https://crates.io/crates/segtok) [![](https://docs.rs/segtok/badge.svg)](https://docs.rs/segtok/)\n\nSegtok is a fast, rule-based sentence segmentation and tokenization library for well-orthographed texts, particularly in\nEnglish, German, and Romance languages.\n\n- Unicode support\n- High precision for well-orthographed texts\n- Minimal false positives\n- Handles complex sentence boundaries\n- Handles technical texts and URLs\n\nIt minimizes false positives, handles complex sentence structures, technical terms, and URLs, and supports Unicode.\nIt’s lightweight, customizable for developers, and integrates easily into Unix-based workflows. Segtok is ideal for\nprocessing structured, regular texts where precision and speed are crucial.\n\nPorted from the [python package](https://github.com/fnl/segtok) (not maintained anymore),\nand fixes [a few bugs](https://github.com/fnl/segtok/issues/26) not fixed there. You may want to read about\n[why segtok was made](https://github.com/xamgore/segtok/blob/master/README.md).\n\n## Example\n\n```rust\nuse segtok::{segmenter::*, tokenizer::*};\n\nfn main() {\n  let input = include_str!(\"../tests/test_google.txt\");\n\n  let sentences: Vec\u003cVec\u003c_\u003e\u003e = split_multi(input, SegmentConfig::default())\n    .into_iter()\n    .map(|span| split_contractions(web_tokenizer(\u0026span)).collect())\n    .collect();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxamgore%2Fsegtok","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxamgore%2Fsegtok","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxamgore%2Fsegtok/lists"}