LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reorder 2D array with new indexes

Hello,

Contextualizing, in my software I have a translation search system, and I would like to search for the most similar phrases so that the user can see if the translation already exists, or at least a similar one so that he can reuse it. I'm using the Levenshtein Distance algorithm to check the closest sentences and according to this "note", I want to rearrange the array, from the lowest note to the highest

But I'm not able to do this efficiently, can you help me?

leandrofeder_0-1731406217146.png

 

Download All
0 Kudos
Message 1 of 3
(165 Views)

In assumption that the Levenshtein works properly, may by you can simplify this up to the following:

Screenshot 2024-11-12 11.59.20.png

Message 2 of 3
(145 Views)

I've made a UTF-8 version of your "Levenshtein Distance.vi" and added it to my UTF-8 library.

Message 3 of 3
(102 Views)