minus-squaregram@lemmy.mlOPtoRust@programming.dev•textdistance.rs, Rust crate with 25+ algorithms for comparing strings. Now with no_std support!linkfedilinkEnglisharrow-up2·4 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 · 4 months agotextdistance.rs, Rust crate with 25+ algorithms for comparing strings. Now with no_std support!plus-squaregithub.comexternal-linkmessage-square3fedilinkarrow-up158arrow-down10
arrow-up158arrow-down1external-linktextdistance.rs, Rust crate with 25+ algorithms for comparing strings. Now with no_std support!plus-squaregithub.comgram@lemmy.ml to Rust@programming.devEnglish · 4 months agomessage-square3fedilink
gram@lemmy.ml to Rust@programming.devEnglish · 4 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-up143arrow-down11
arrow-up142arrow-down1external-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 · 4 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