{"id":13822428,"url":"https://github.com/reinfer/blingfire-rs","last_synced_at":"2025-05-16T17:30:49.814Z","repository":{"id":57517598,"uuid":"195544562","full_name":"reinfer/blingfire-rs","owner":"reinfer","description":"Rust wrapper for the BlingFire tokenization library","archived":false,"fork":false,"pushed_at":"2020-06-23T16:31:02.000Z","size":25,"stargazers_count":15,"open_issues_count":1,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-15T15:58:36.766Z","etag":null,"topics":["machine-learning","nlp","rust","rust-wrapper","tokenizer"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reinfer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-06T13:50:14.000Z","updated_at":"2024-04-30T11:32:54.000Z","dependencies_parsed_at":"2022-09-15T21:52:28.453Z","dependency_job_id":null,"html_url":"https://github.com/reinfer/blingfire-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinfer%2Fblingfire-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinfer%2Fblingfire-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinfer%2Fblingfire-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinfer%2Fblingfire-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reinfer","download_url":"https://codeload.github.com/reinfer/blingfire-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576382,"owners_count":22094357,"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":["machine-learning","nlp","rust","rust-wrapper","tokenizer"],"created_at":"2024-08-04T08:01:59.794Z","updated_at":"2025-05-16T17:30:49.541Z","avatar_url":"https://github.com/reinfer.png","language":"Rust","funding_links":[],"categories":["Rust","NLP"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/reinfer/blingfire-rs.svg?branch=master)](https://travis-ci.com/reinfer/blingfire-rs)\n[![Documentation](https://docs.rs/blingfire/badge.svg)](https://docs.rs/blingfire)\n[![Crate](https://meritbadge.herokuapp.com/blingfire)](https://crates.io/crates/blingfire)\n\n# BlingFire in Rust\n\n`blingfire` is a thin Rust wrapper for the [BlingFire](https://github.com/microsoft/BlingFire) tokenization library.\n\nAdd the library to `Cargo.toml` to get started\n```bash\ncargo add blingfire\n```\n\nThe library exposes two functions `text_to_words` and `text_to_sentences`\n```rust\nuse blingfire;\n\nfn main() {\n    let mut parsed = String::new();\n\n    blingfire::text_to_words(\"Cat,sat on   the mat.\", \u0026mut parsed).unwrap();\n    assert_eq!(parsed.as_str(), \"Cat , sat on the mat .\");\n\n    blingfire::text_to_sentences(\"Cat sat. Dog barked.\", \u0026mut parsed).unwrap();\n    assert_eq!(parsed.as_str(), \"Cat sat.\\nDog barked.\");\n}\n```\n\nThe code is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freinfer%2Fblingfire-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freinfer%2Fblingfire-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freinfer%2Fblingfire-rs/lists"}