HF RL Explorer

Text distance algorithms returning incorrect results

Text distance algorithms returning incorrect results: a task in UltraTerminal (Harbor dataset). Several text distance algorithms are producing unexpected results. The bag distance algorithm is returning 3 instead of 0 for identical strings, and other token-based algorithms like Jaccard, Cosine…

The task

Several text distance algorithms are producing unexpected results. The bag distance algorithm is returning 3 instead of 0 for identical strings, and other token-based algorithms like Jaccard, Cosine, and Overlap are also failing to compute correct distances.

Part of harness-hub/UltraTerminal.