Download crates/nedo-core/src/lib.rs from Ethosoft/NedoTokenizer: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/Ethosoft/NedoTokenizer/resolve/main/crates/nedo-core/src/lib.rs
- Command line
-
hf download hf://Ethosoft/NedoTokenizer/crates/nedo-core/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/Ethosoft/NedoTokenizer/resolve/main/crates/nedo-core/src/lib.rs
721 Bytes
| //! Core morphology and lossless segmentation engine. | |
| mod scanner; | |
| pub use nedo_format::{ByteSpan, FormatError, LosslessDocument, SurfaceUnit}; | |
| pub use scanner::{ | |
| scan, scan_compact, scan_lexical_spans, scan_lexical_spans_with_hints, CodeScanHints, | |
| CompactScanResult, HintedLexicalSpanIter, LexicalKind, LexicalSpanIter, ScanError, ScanResult, | |
| }; | |
| /// Current morphology bundle schema. | |
| pub const MORPH_BUNDLE_SCHEMA_VERSION: u32 = 1; | |
| /// Creates a lossless, deliberately unanalyzed document. | |
| /// | |
| /// This is an explicit state, not a morphology fallback disguised as success. | |
| pub const fn preserve(raw: Vec<u8>) -> LosslessDocument { | |
| LosslessDocument::unanalyzed(raw) | |
| } | |