minus-squaregram@lemmy.mlOPtoRust@programming.dev•textdistance.rs, Rust crate with 25+ algorithms for comparing strings. Now with no_std support!linkfedilinkEnglisharrow-up2·2 months agoIn Python version, pass the list of words directly into the algorithm, and it will compare words. In Rust version, use Algorithm.for_words: https://docs.rs/textdistance/1.1.0/textdistance/trait.Algorithm.html#method.for_words linkfedilink
gram@lemmy.ml to Rust@programming.devEnglish · 2 months agotextdistance.rs, Rust crate with 25+ algorithms for comparing strings. Now with no_std support!plus-squaregithub.comexternal-linkmessage-square3fedilinkarrow-up158
arrow-up158external-linktextdistance.rs, Rust crate with 25+ algorithms for comparing strings. Now with no_std support!plus-squaregithub.comgram@lemmy.ml to Rust@programming.devEnglish · 2 months agomessage-square3fedilink
gram@lemmy.ml to Rust@programming.devEnglish · 2 months agoGitHub - life4/textdistance.rs: 🦀📏 Rust library to compare strings (or any sequences). 25+ algorithms, pure Rust, common interface, Unicode support.plus-squaregithub.comexternal-linkmessage-square2fedilinkarrow-up143
arrow-up143external-linkGitHub - life4/textdistance.rs: 🦀📏 Rust library to compare strings (or any sequences). 25+ algorithms, pure Rust, common interface, Unicode support.plus-squaregithub.comgram@lemmy.ml to Rust@programming.devEnglish · 2 months agomessage-square2fedilink
In Python version, pass the list of words directly into the algorithm, and it will compare words. In Rust version, use Algorithm.for_words:
https://docs.rs/textdistance/1.1.0/textdistance/trait.Algorithm.html#method.for_words