Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Measuring similarity between strings

I have on the order of one million strings where I want to find similar strings. I would like to use the Levinsthein Distance as the measure of similarity. My first try was to do a left join of th...
  • AlexisOlson's avatar
    AlexisOlson
    3 years ago

    Anonymous wrote:

    I still have no information on what measure is used to measure the string similarity.

    As I mentioned above, the measure used is Jaccard similarity.

     

    Calculating the similarity between all pairs of 2 million strings means 4 trillion comparisons. This will take a lot of computing time and Power Query likely isn't the best tool for this particular job. You'll probably need some optimization techniques to make this more tractable. See this approach for example,

    https://hpccsystems.com/blog/edit-distances-and-optimized-prefix-trees-big-data