58
submitted 1 week ago by orsinium@lemmy.ml to c/rust@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] orsinium@lemmy.ml 2 points 1 week ago

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

this post was submitted on 11 Sep 2024
58 points (100.0% liked)

Rust

5771 readers
46 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS